GameHasNoGame commited on
Commit
839fc47
·
verified ·
1 Parent(s): 06c7ebe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -12,5 +12,10 @@ def predict_image(img):
12
 
13
  image = gr.Image(shape=(192, 192))
14
  label = gr.Label()
15
- intrfce = gr.Interface(fn=predict_image, inputs=image, outputs=label)
16
- intrfce.launch(inline=False)
 
 
 
 
 
 
12
 
13
  image = gr.Image(shape=(192, 192))
14
  label = gr.Label()
15
+ #intrfce = gr.Interface(fn=predict_image, inputs=image, outputs=label)
16
+
17
+ intrfce = gr.Interface(fn=predict,
18
+ inputs=gr.Image(type="pil"),
19
+ outputs=gr.Label(num_top_classes=3)).launch()
20
+
21
+ # intrfce.launch(inline=False)