akhaliq HF staff commited on
Commit
1fc38b2
1 Parent(s): 1dcaf52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):
@@ -23,7 +23,7 @@ examples=[['tiger.jpeg','swin-large-patch4-window12-384-in22k']]
23
 
24
  gr.Interface(
25
  inference,
26
- [gr.inputs.Image(label="Input Image",type='filepath'),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")
27
  ],
28
  gr.outputs.Label(label="Classification"),
29
  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):
23
 
24
  gr.Interface(
25
  inference,
26
+ [gr.inputs.Image(label="Input Image",type='filepath'),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,