Spaces:
Sleeping
Sleeping
updated to import random and yes or no response
Browse files12345678import gradio as grdef echo(message, history):return messagechatbot = gr.ChatInterface(echo, type = "messages")chatbot.launch()123456789101112import gradio as grimport randomdef echo(message, history):choices = ["yes", "no"]#use random to select one of these choicesreturn messageprint(f{random.choice(choices)})chatbot = gr.ChatInterface(echo, type = "messages")chatbot.launch()
app.py+5-1