Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| #import lines go at the top! | |
| def magic_ball(message, history): | |
| return random.choice(['Try again!','Maybe','Without a doubt']) | |
| #def yes_or_no(message,history): | |
| #return random.choice(['Yes','No']) | |
| #def echo(message, history): | |
| #always need two inputs | |
| #return message | |
| print("Hello, World") | |
| chatbot = gr.ChatInterface(magic_ball, | |
| title = 'The Psychic Magic 8 Ball', | |
| description = 'Ask any yes or no question to learn your future', | |
| type='messages') | |
| #defining my chatbot so user can interact, see their conversation and send new messages | |
| chatbot.launch() |