Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def magic_response(message, history): | |
| answers = [ | |
| "Its def likely!", | |
| "Idk bro", | |
| "Yes, obviously", | |
| "Try again later", | |
| "Signs point to no", | |
| "Sure, why not?", | |
| "Literally yes", | |
| "This is unclear" | |
| ] | |
| return random.choice(answers) | |
| chat_ui = gr.ChatInterface( | |
| fn=magic_response, | |
| title="🎱 Ask the Future", | |
| description="Type any yes/no question and receive your fate!", | |
| theme="default", | |
| type="messages" | |
| ) | |
| chat_ui.launch() |