Spaces:
Sleeping
Sleeping
Update app.py
Browse files1 unmodified line234567891011121 unmodified lineimport randomdef echo (message, history):choices = ('yes','no')wow = random.choice(choices)return wowchatbot = gr.ChatInterface(echo)chatbot.launch()1 unmodified line23456789101112131 unmodified lineimport randomdef random_message (message, history):choices = ('yes','no','i don't think so,"be so for real','yep', 'woooow', 'hmmmm', 'idk', 'idc', 'yaaay', 'why would i know')wow = random.choice(choices)return wowchatbot = gr.ChatInterface(random_message, type = "messages", title = "chatty")chatbot.launch()
app.py+4-3