Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def random_response(message, history): | |
| response_options = ["yes", "no", "most likely","maybe", "not quite"] | |
| return random.choice(response_options) | |
| chatbot = gr.ChatInterface(random_response, title = "Magic 8 Ball") | |
| chatbot.launch() | |