Spaces:
Sleeping
Sleeping
File size: 494 Bytes
0bde099 55eb806 ee0492d fc5b6cd ee0492d 55eb806 74ae6c5 55eb806 fe8c5e9 751b346 a961ac4 fe8c5e9 751b346 46ad0cd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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() |