Spaces:
Sleeping
Sleeping
Update app.py
Browse files1 unmodified line234567891 unmodified lineimport random as rddef echo (message, history):choices = ["yes","no"]random_choice = rd.choice(choices)return random_choicechatbot = gr.ChatInterface(echo, type = "messages", title = "Rando Bot")1 unmodified line234567891 unmodified lineimport random as rddef echo (message, history):eight_ball_answers = ["yes","no","ehhh probably not the best idea","Sure why not!","idk","i seems not","hahahaha... no","yes of course!"]random_choice = rd.choice(eight_ball_answers)return random_choicechatbot = gr.ChatInterface(echo, type = "messages", title = "Rando Bot")
app.py+2-2