Spaces:
Sleeping
Sleeping
Update app.py
Browse files20 unmodified lines212223242526272829303120 unmodified linesdef yes_or_no(message, history):return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])# def echo(message, history):# return messageprint("Hello World!")chatbot = gr.ChatInterface(yes_or_no, type = "messages", title = "8-Ball", description = "Ask the 8-Ball a question!")# defining my chatbot so that the user can interact and see their conversation history and send new messageschatbot.launch()20 unmodified lines212223242526272829303120 unmodified linesdef yes_or_no(message, history):return random.choice(['Yes', 'No', 'Maybe', 'Ask Again'])def echo(message, history):return messageprint("Hello World!")chatbot = gr.ChatInterface(respond, type = "messages")# defining my chatbot so that the user can interact and see their conversation history and send new messageschatbot.launch()
app.py+3-3