streiluc commited on
Commit
f6ad416
·
verified ·
1 Parent(s): c6ad28e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -29,8 +29,9 @@ def predict_regression(image):
29
 
30
 
31
  #Create Gradio interface
32
- input_image = gr.inputs.Image()
33
- output_text = gr.outputs.Label() # Use gr.Label to show top-1 result
 
34
  interface = gr.Interface(fn=predict_regression,
35
  inputs=input_image,
36
  outputs=output_text, # Change output to Label to display single label and confidence
 
29
 
30
 
31
  #Create Gradio interface
32
+ # Create Gradio interface
33
+ input_image = gr.Image()
34
+ output_text = gr.Label() # Use gr.Label to show top-1 result
35
  interface = gr.Interface(fn=predict_regression,
36
  inputs=input_image,
37
  outputs=output_text, # Change output to Label to display single label and confidence