Spaces:
Sleeping
Sleeping
File size: 404 Bytes
ff2ba3f f1f87af ff2ba3f f1f87af 5d8771b f1f87af ff2ba3f 28f6ef0 ff2ba3f | 1 2 3 4 5 6 7 8 9 | 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() |