Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| answers = ["yes", "no"] | |
| def yes_or_no(messages): | |
| random_choice = random.choice(answers) | |
| return random_choice | |
| chatbot = gr.ChatInterface(yes_or_no, type="messages") | |
| chatbot.launch() |