ppsingh commited on
Commit
6f413e7
·
verified ·
1 Parent(s): 7a0ac57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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