Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,9 @@ def predict_regression(image):
|
|
29 |
|
30 |
|
31 |
#Create Gradio interface
|
32 |
-
|
33 |
-
|
|
|
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
|