JerryGao commited on
Commit
6e3e42e
·
verified ·
1 Parent(s): e1097b4

update fact checking agent UI to make it user friendly

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +9 -2
Gradio_UI.py CHANGED
@@ -265,7 +265,7 @@ class GradioUI:
265
  stored_messages = gr.State([])
266
  file_uploads_log = gr.State([])
267
  chatbot = gr.Chatbot(
268
- label="Agent",
269
  type="messages",
270
  avatar_images=(
271
  None,
@@ -288,7 +288,14 @@ class GradioUI:
288
  self.log_user_message,
289
  [text_input, file_uploads_log],
290
  [stored_messages, text_input],
291
- ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
 
 
 
 
 
 
 
292
 
293
  demo.launch(debug=True, share=True, **kwargs)
294
 
 
265
  stored_messages = gr.State([])
266
  file_uploads_log = gr.State([])
267
  chatbot = gr.Chatbot(
268
+ label="Fact-Checking Agent",
269
  type="messages",
270
  avatar_images=(
271
  None,
 
288
  self.log_user_message,
289
  [text_input, file_uploads_log],
290
  [stored_messages, text_input],
291
+ ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot]
292
+ examples = gr.Examples(
293
+ examples=[["Fact Check Elo Musk's claim Biden’s strategy is to get as many illegals in the country as possible"],
294
+ ["Fact Check Elo Musk's claim that US gov spending funding to send Condom to Gaza."],
295
+ ["Fact Check Donald Trump's claim that \"Right to Try\" experimental drug program saved \"thousands and thousands of lives.\""],
296
+ ["Fact Check JD Vance claim that US gov forcing hospitals to treat undocumented immigrants, pushing them toward bankruptcy"]],
297
+ inputs=[text_input],
298
+ )
299
 
300
  demo.launch(debug=True, share=True, **kwargs)
301