Spaces:
Sleeping
Sleeping
added examples
Browse files6 unmodified lines78910116 unmodified linesdef respond(message, history):return random.choice(["Yes", "No"])chatbot = gr.ChatInterface(respond, title="My Bot", description="Randomly chooses Yes/No as a response to anything you say")chatbot.launch()6 unmodified lines78910116 unmodified linesdef respond(message, history):return random.choice(["Yes", "No"])chatbot = gr.ChatInterface(respond, examples=["Can you hear me?", "Are you a good bot?", "Will it rain tonight?"], title="My Bot", description="Randomly chooses Yes/No as a response to anything you say")chatbot.launch()
app.py+1-1