Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,9 +45,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
45 |
confidence_output = gr.Textbox(label="Confidence", interactive=False)
|
46 |
feedback_output = gr.Textbox(label="Feedback Status", interactive=False)
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
51 |
|
52 |
submit_btn.click(predict, inputs=image_input, outputs=[prediction_output, confidence_output])
|
53 |
feedback_btn.click(report_feedback, outputs=feedback_output)
|
|
|
45 |
confidence_output = gr.Textbox(label="Confidence", interactive=False)
|
46 |
feedback_output = gr.Textbox(label="Feedback Status", interactive=False)
|
47 |
|
48 |
+
with gr.Row():
|
49 |
+
submit_btn = gr.Button("Submit", variant="primary", elem_id="submit_btn")
|
50 |
+
feedback_btn = gr.Button("The model was wrong", variant="secondary", elem_id="feedback_btn")
|
51 |
+
|
52 |
+
clear_btn = gr.Button("Clear", elem_id="clear_btn")
|
53 |
|
54 |
submit_btn.click(predict, inputs=image_input, outputs=[prediction_output, confidence_output])
|
55 |
feedback_btn.click(report_feedback, outputs=feedback_output)
|