Spaces:
Sleeping
Sleeping
Update app.py
Browse files319 unmodified lines3203213223233233243253263273 unmodified lines331332333333334334335336337338319 unmodified lines gr.Markdown("## Multi-Agent Task Solver with Human-in-the-Loop") with gr.Row(): # Set type="messages" to avoid deprecation warnings. chat_output = gr.Chatbot(label="Conversation") chat_output = gr.Chatbot(label="Conversation", type="messages") with gr.Row(): with gr.Column(scale=8):3 unmodified lines send_button = gr.Button("Send") # When Send is clicked, the multi_agent_chat generator is called and its output is streamed to the chat. send_button.click(fn=multi_agent_chat, inputs=[message_input, api_key_input], outputs=chat_output, stream=True) # Remove stream=True (not supported in your Gradio version). send_button.click(fn=multi_agent_chat, inputs=[message_input, api_key_input], outputs=chat_output)
if __name__ == "__main__": demo.launch(share=True)app.py+4-3