Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import random | |
| def echo(message, history): | |
| return(message) | |
| def yes_no(message, history): | |
| responses = ["Perchance", "No", "Yes", "Without a doubt", "Very doubtful", "Ask again later", "Signs point to yes.", "Don't count on it"] | |
| return random .choice(responses) | |
| print("Hello World") | |
| chatbot = gr.ChatInterface(yes_no, type = "messages", title = "Magic 8 Ball", description = "Ask this Magic 8 Ball anything!", theme = 'Taithrah/Minimal') | |
| chatbot.launch() |