Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def yes_no(message, history): | |
| respones = ['yes','no'] | |
| return random.choice(respones) | |
| chatbot = gr.ChatInterface(yes_no, type='messages', title= "Yes or No Chatbot", description= "This is a chatbot that responds with yes or no to your questions!", examples= ["Will I win the lottery today?", "Will it rain today?", "Do I need a jacket today?"]) | |
| chatbot.launch() |