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