Spaces:
Running
Running
Update app.py
Browse files
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=[
|
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=[
|
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 |
|