Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def echo(message, history): | |
| return message | |
| def yes_no(message, history): | |
| responses = ["Yes", "No"] | |
| return random.choice(responses) | |
| print("Hello, world!") | |
| chatbot = gr.ChatInterface(yes_no, type="messages", title="Ask me a question!", description="I can expertly answer any question.", save_history=True) | |
| chatbot.launch() | |