Spaces:
Sleeping
Sleeping
update fact checking agent UI to make it user friendly
Browse files264 unmodified lines26526626726826927027116 unmodified lines288289290291292293294264 unmodified linesstored_messages = gr.State([])file_uploads_log = gr.State([])chatbot = gr.Chatbot(label="Agent",type="messages",avatar_images=(None,16 unmodified linesself.log_user_message,[text_input, file_uploads_log],[stored_messages, text_input],).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])demo.launch(debug=True, share=True, **kwargs)264 unmodified lines26526626726826927027116 unmodified lines288289290291292293294295296297298299300301264 unmodified linesstored_messages = gr.State([])file_uploads_log = gr.State([])chatbot = gr.Chatbot(label="Fact-Checking Agent",type="messages",avatar_images=(None,16 unmodified linesself.log_user_message,[text_input, file_uploads_log],[stored_messages, text_input],).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot]examples = gr.Examples(examples=[["Fact Check Elo Musk's claim Biden’s strategy is to get as many illegals in the country as possible"],["Fact Check Elo Musk's claim that US gov spending funding to send Condom to Gaza."],["Fact Check Donald Trump's claim that \"Right to Try\" experimental drug program saved \"thousands and thousands of lives.\""],["Fact Check JD Vance claim that US gov forcing hospitals to treat undocumented immigrants, pushing them toward bankruptcy"]],inputs=[text_input],)demo.launch(debug=True, share=True, **kwargs)
Gradio_UI.py+9-2