Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,9 @@ with gr.Blocks() as demo:
|
|
66 |
return result, gr.update(visible=True), text, pred
|
67 |
|
68 |
predict_btn.click(classify_review, inputs=input_text, outputs=[output_label, hidden_text, hidden_pred])\
|
69 |
-
|
|
|
|
|
70 |
|
71 |
submit_btn.click(save_correction, inputs=[hidden_text, hidden_pred, correction_dropdown], outputs=correction_status)
|
72 |
|
|
|
66 |
return result, gr.update(visible=True), text, pred
|
67 |
|
68 |
predict_btn.click(classify_review, inputs=input_text, outputs=[output_label, hidden_text, hidden_pred])\
|
69 |
+
.then(show_correction_ui, inputs=[output_label, hidden_text, hidden_pred],
|
70 |
+
outputs=[output_label, correction_row, hidden_text, hidden_pred])
|
71 |
+
|
72 |
|
73 |
submit_btn.click(save_correction, inputs=[hidden_text, hidden_pred, correction_dropdown], outputs=correction_status)
|
74 |
|