Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ with gr.Blocks() as demo:
|
|
81 |
# Main interface: image input, analyze button, and prediction output.
|
82 |
with gr.Column():
|
83 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
|
88 |
# When the "Analyze" button is clicked, use the selected model to classify the image.
|
89 |
analyze_btn.click(fn=classify, inputs=[image_input, selected_model], outputs=output_label)
|
|
|
81 |
# Main interface: image input, analyze button, and prediction output.
|
82 |
with gr.Column():
|
83 |
image_input = gr.Image(type="numpy", label="Upload Image")
|
84 |
+
with gr.Row(): # <-- Fixed the syntax error here
|
85 |
+
analyze_btn = gr.Button("Classify / Predict")
|
86 |
+
output_label = gr.Label(label="Prediction Scores")
|
87 |
|
88 |
# When the "Analyze" button is clicked, use the selected model to classify the image.
|
89 |
analyze_btn.click(fn=classify, inputs=[image_input, selected_model], outputs=output_label)
|