Spaces:
Sleeping
Sleeping
Updated theme and added more respnses
Browse files1 unmodified line234567891011121 unmodified lineimport randomdef echo(message, history):choices = ["yes", "ummmmm no no no", "sure", ".....I think you need to rethink your choices", "you deserve a sweet treat for that"]#use random to select one of these choicesrandom_message = random.choice(choices)return random_messagechatbot = gr.ChatInterface(echo, type = "messages", theme = "soft")chatbot.launch()1 unmodified line234567891011121 unmodified lineimport randomdef echo(message, history):choices = ["yes", "ummmmm no no no", "sure", ".....I think you need to rethink your choices", "you deserve a sweet treat", "I don't think so"]#use random to select one of these choicesrandom_message = random.choice(choices)return random_messagechatbot = gr.ChatInterface(echo, type = "messages", theme = "calm_seafoam")chatbot.launch()
app.py+2-2