Abrahamau commited on
Commit
b3fa9dd
·
verified ·
1 Parent(s): c3f5319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,14 +24,14 @@ def guessanImage(model, image):
24
  radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
25
  tab1 = gr.Interface(
26
  fn=guessanImage,
27
- inputs=[radio, gr.Image(type="pil")],
28
  outputs=["text"],
29
  )
30
 
31
  radio2 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
32
  tab2 = gr.Interface(
33
  fn=guessanImage,
34
- inputs=[radio, gr.Image(type="pil")],
35
  outputs=["text"],
36
  )
37
 
 
24
  radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
25
  tab1 = gr.Interface(
26
  fn=guessanImage,
27
+ inputs=[radio1, gr.Image(type="pil")],
28
  outputs=["text"],
29
  )
30
 
31
  radio2 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
32
  tab2 = gr.Interface(
33
  fn=guessanImage,
34
+ inputs=[radio2, gr.Image(type="pil")],
35
  outputs=["text"],
36
  )
37