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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -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):
@@ -23,10 +23,10 @@ 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"], type="value", default="swin-large-patch4-window12-384-in22k", label="model")
27
  ],
28
  gr.outputs.Label(label="Classification"),
29
  examples=examples,
30
  article=article,
31
  title=title,
32
- description=description).launch(enable_queue=True)
 
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","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,
30
  article=article,
31
  title=title,
32
+ description=description).launch(enable_queue=True,cache_examples=True)