Abrahamau commited on
Commit
2997b62
·
verified ·
1 Parent(s): a1ff6d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -18,7 +18,14 @@ def guessanImage(model, image):
18
  description = imgclassifier(image)
19
  return description
20
 
21
- radio = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
 
 
 
 
 
 
 
22
 
23
  demo = gr.Interface(
24
  fn=guessanImage,
 
18
  description = imgclassifier(image)
19
  return description
20
 
21
+ with gr.Blocks() as demo:
22
+ with gr.Tab("Lion"):
23
+ radio = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
24
+
25
+ with gr.Tab("Tiger"):
26
+ radio = gr.Radio(["zzmicrosoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], label="Select a Classifier", info="Image Classifier?")
27
+
28
+
29
 
30
  demo = gr.Interface(
31
  fn=guessanImage,