Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2103.140
|
|
8 |
|
9 |
io1 = gr.Interface.load("huggingface/microsoft/swin-large-patch4-window12-384-in22k")
|
10 |
|
11 |
-
io2 = gr.Interface.load("huggingface/microsoft/swin-base-patch4-window7-224-in22k")
|
12 |
|
13 |
|
14 |
def inference(image, model):
|
@@ -19,10 +19,11 @@ def inference(image, model):
|
|
19 |
return outtext
|
20 |
|
21 |
|
22 |
-
examples=[['tiger.jpeg',
|
|
|
23 |
gr.Interface(
|
24 |
inference,
|
25 |
-
[gr.inputs.Image(label="Input Image"),gr.inputs.Dropdown(choices=["swin-large-patch4-window12-384-in22k"
|
26 |
],
|
27 |
gr.outputs.Label(label="Classification"),
|
28 |
examples=examples,
|
|
|
8 |
|
9 |
io1 = gr.Interface.load("huggingface/microsoft/swin-large-patch4-window12-384-in22k")
|
10 |
|
11 |
+
#io2 = gr.Interface.load("huggingface/microsoft/swin-base-patch4-window7-224-in22k")
|
12 |
|
13 |
|
14 |
def inference(image, model):
|
|
|
19 |
return outtext
|
20 |
|
21 |
|
22 |
+
examples=[['tiger.jpeg','swin-large-patch4-window12-384-in22k']]
|
23 |
+
|
24 |
gr.Interface(
|
25 |
inference,
|
26 |
+
[gr.inputs.Image(label="Input Image"),gr.inputs.Dropdown(choices=["swin-large-patch4-window12-384-in22k"], type="value", default="swin-large-patch4-window12-384-in22k", label="model")
|
27 |
],
|
28 |
gr.outputs.Label(label="Classification"),
|
29 |
examples=examples,
|