Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,6 +320,16 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
| 320 |
show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",
|
| 321 |
avatar_images = (None,"data-collection.png"),
|
| 322 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
|
| 324 |
|
| 325 |
|
|
|
|
| 320 |
show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",
|
| 321 |
avatar_images = (None,"data-collection.png"),
|
| 322 |
)
|
| 323 |
+
|
| 324 |
+
# feedback UI
|
| 325 |
+
with gr.Column(elem_id="feedback-container"):
|
| 326 |
+
with gr.Row(visible=False) as feedback_row:
|
| 327 |
+
gr.Markdown("Was this response helpful?")
|
| 328 |
+
with gr.Row():
|
| 329 |
+
okay_btn = gr.Button("👍 Okay", elem_classes="feedback-button")
|
| 330 |
+
not_okay_btn = gr.Button("👎 Not to expectations", elem_classes="feedback-button")
|
| 331 |
+
feedback_thanks = gr.Markdown("Thanks for the feedback!", visible=False)
|
| 332 |
+
feedback_state = gr.State()
|
| 333 |
|
| 334 |
|
| 335 |
|