Spaces:
Sleeping
Sleeping
imported the random library and made the message a random choice (yes or no)
Browse files123456import gradio as grdef echo(message, history):return messagechatbot = gr.ChatInterface(echo, type = "messages")123456789import gradio as grimport randomdef echo(message, history):choices = ["yes", "no"]message = random.choice(choices)return messagechatbot = gr.ChatInterface(echo, type = "messages")
app.py+3