eight ball version
Browse files1 unmodified line23456781 unmodified lineimport randomdef echo(message, history):my_list = ["yes", "no"]return random.choice(my_list)# gr.ChatInterface(echo, type = "messages")chatbot = gr.ChatInterface(fn=echo, type="messages", description ="<strong>Welcome to your 8 ball.</strong><br>Ask Me Anything", title="Eight Ball")1 unmodified line23456781 unmodified lineimport randomdef echo(message, history):my_list = ["absolutely", "ask again later", "things are murky", "it's a def yes", "perhaps"]return random.choice(my_list)# gr.ChatInterface(echo, type = "messages")chatbot = gr.ChatInterface(fn=echo, type="messages", description ="<strong>Welcome to your 8 ball.</strong><br>Ask Me Anything", title="Eight Ball")
app.py+1-1