KWKOutput10 / app.py
leona24's picture
Update app.py
1288738 verified
raw
history blame contribute delete
421 Bytes
import gradio as gr
import random
responses = [
"Without a doubt.",
"Outlook not so good.",
"Ask again later.",
"Yes, definitely!",
"My sources say no.",
"Cannot predict now.",
"Signs point to yes.",
"Very doubtful."
]
def magic_8_ball(message, history):
answer = random.choice(responses)
return answer
chatbot = gr.ChatInterface(magic_8_ball, type="messages")
chatbot.launch()