lyimo commited on
Commit
82fbfaf
1 Parent(s): 6c95e48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -19,7 +19,12 @@ def predict(img):
19
  examples = ['image.jpg']
20
 
21
  # Create the Gradio interface
22
- interface = gr.Interface((fn=predict,inputs=gr.components.Image(),outputs=gr.components.Label(num_top_classes=3))
 
 
 
 
 
23
 
24
  # Enable the queue to handle POST requests
25
  interface.queue(api_open=True)
 
19
  examples = ['image.jpg']
20
 
21
  # Create the Gradio interface
22
+ interface = gr.Interface(
23
+ fn=predict,
24
+ inputs=gr.components.Image(),
25
+ outputs=gr.components.Label(num_top_classes=3),
26
+ examples=examples
27
+ )
28
 
29
  # Enable the queue to handle POST requests
30
  interface.queue(api_open=True)