vicuna-13b· LMSYS
Arena Human Preference 55K
Write python script to create simple UI of chatbot using gradio
- User
Write python script to create simple UI of chatbot using gradio
- Assistant
Here is a simple Python script that creates a UI for a chatbot using the Gradio library:
pythonimport gradio as gr # Create a chatbot UI chatbot = gr.Interface( gr.inputs.Textbox(lines=3), gr.outputs.Textbox(lines=3), gr.modules.ButtonModule( gr.components.Button(label="Say Hi"), gr.components.Button(label="Say Goodbye"), gr.components.Button(label="Say Something Else") ) ) # Run the chatbot UI chatbot.launch()This script creates a chatbot UI with a text input for the user to type their message, and a text output for the chatbot's response. The chatbot also has three buttons that the user can click to trigger different responses from the chatbot.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.