Spaces:
Runtime error
Runtime error
Commit
·
dc26845
1
Parent(s):
81490b8
Hide submit conversation button by default
Browse files- Remove redundant gr.Info() message in submit_conversation function
- Set submit button to be invisible by default in the UI
- app/app.py +1 -4
app/app.py
CHANGED
|
@@ -371,7 +371,6 @@ def submit_conversation(dataframe, conversation_id, session_id, language):
|
|
| 371 |
"language": language,
|
| 372 |
}
|
| 373 |
save_feedback(input_object=conversation_data)
|
| 374 |
-
gr.Info("Submitted your feedback!")
|
| 375 |
return (gr.Dataframe(value=None, interactive=False), [])
|
| 376 |
|
| 377 |
|
|
@@ -446,9 +445,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 446 |
with gr.Accordion("Collected feedback", open=False):
|
| 447 |
dataframe = gr.Dataframe(wrap=True, label="Collected feedback")
|
| 448 |
|
| 449 |
-
submit_btn = gr.Button(
|
| 450 |
-
value="💾 Submit conversation",
|
| 451 |
-
)
|
| 452 |
|
| 453 |
##############################
|
| 454 |
# Deal with feedback
|
|
|
|
| 371 |
"language": language,
|
| 372 |
}
|
| 373 |
save_feedback(input_object=conversation_data)
|
|
|
|
| 374 |
return (gr.Dataframe(value=None, interactive=False), [])
|
| 375 |
|
| 376 |
|
|
|
|
| 445 |
with gr.Accordion("Collected feedback", open=False):
|
| 446 |
dataframe = gr.Dataframe(wrap=True, label="Collected feedback")
|
| 447 |
|
| 448 |
+
submit_btn = gr.Button(value="💾 Submit conversation", visible=False)
|
|
|
|
|
|
|
| 449 |
|
| 450 |
##############################
|
| 451 |
# Deal with feedback
|