akhaliq HF staff commited on
Commit
7a4a025
1 Parent(s): ec1c462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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',"swin-large-patch4-window12-384-in22k"]]
 
23
  gr.Interface(
24
  inference,
25
- [gr.inputs.Image(label="Input Image"),gr.inputs.Dropdown(choices=["swin-large-patch4-window12-384-in22k","swin-base-patch4-window7-224-in22k"], type="value", default="swin-large-patch4-window12-384-in22k", label="model")
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,