Jfink09 commited on
Commit
a59a27b
·
1 Parent(s): 20cec57

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ example_list = [["examples/" + example] for example in os.listdir("examples")]
72
  # Create the Gradio demo
73
  demo = gr.Interface(fn=predict, # mapping function from input to output
74
  inputs=gr.Image(type="pil"), # what are the inputs?
75
- outputs=[gr.Label(num_top_classes=len(num_classes), label="Predictions"), # what are the outputs?
76
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
77
  # Create examples list from "examples/" directory
78
  examples=example_list,
 
72
  # Create the Gradio demo
73
  demo = gr.Interface(fn=predict, # mapping function from input to output
74
  inputs=gr.Image(type="pil"), # what are the inputs?
75
+ outputs=[gr.Label(num_top_classes=8, label="Predictions"), # what are the outputs?
76
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
77
  # Create examples list from "examples/" directory
78
  examples=example_list,