Sushrut98 commited on
Commit
4a3d87b
1 Parent(s): 9a00f5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
65
 
66
  # Create the Gradio demo
67
  demo = gr.Interface(fn=predict, # mapping function from input to output
68
- inputs="image", # what are the inputs?
69
  outputs=[gr.Label(num_top_classes=5, label="Predictions"), # what are the outputs?
70
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
71
  # Create examples list from "examples/" directory
 
65
 
66
  # Create the Gradio demo
67
  demo = gr.Interface(fn=predict, # mapping function from input to output
68
+ inputs= gr.Image(type='pil'), # what are the inputs?
69
  outputs=[gr.Label(num_top_classes=5, label="Predictions"), # what are the outputs?
70
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
71
  # Create examples list from "examples/" directory