Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def magic_8ball_answers(message, history): | |
| responses = ["Ummm... try again","Most definitely!", "All signs point to yes!", "Don't count on it...", "Ask again later."] | |
| return random.choice(responses) | |
| chatbot = gr.ChatInterface(magic_8ball_answers, type='messages',examples=["Should I go to work?", "Should I go on a walk?", "Should I ask my crush out?"], title="Magic 8-Ball", description="This chatbot will give you advice on a question, as a Magic 8-Ball does!") | |
| chatbot.launch() |