Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| responses = [ | |
| "Without a doubt.", | |
| "Outlook not so good.", | |
| "Ask again later.", | |
| "Yes, definitely!", | |
| "My sources say no.", | |
| "Cannot predict now.", | |
| "Signs point to yes.", | |
| "Very doubtful." | |
| ] | |
| def magic_8_ball(message, history): | |
| answer = random.choice(responses) | |
| return answer | |
| chatbot = gr.ChatInterface(magic_8_ball, type="messages") | |
| chatbot.launch() |