nimool commited on
Commit
8ad010b
·
1 Parent(s): a0a36ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,8 +65,8 @@ 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=gr.Image(type="pil"), # what are the inputs?
69
- outputs=[gr.Label(num_top_classes=3, label="Predictions"), # what are the outputs?
70
  gr.Number(label="Prediction time (s)")],
71
  # our fn has two outputs, therefore we have two outputs
72
  # 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", label="عکس ورودی", ), # what are the inputs?
69
+ outputs=[gr.Label(num_top_classes=3, label="پاسخ"), # what are the outputs?
70
  gr.Number(label="Prediction time (s)")],
71
  # our fn has two outputs, therefore we have two outputs
72
  # Create examples list from "examples/" directory