ChatbotLab / app.py
demetz's picture
Update app.py
76a6bb0 verified
raw
history blame
351 Bytes
import gradio as gr
import random
def magicEight(message, history):
answers = ["The outlook is good!", "No, sorry", "Maybe", "Ask me again"]
message = random.choice(answers)
return message
chatbot = gr.ChatInterface(
magicEight, chatbot="Welcome! Ask the Magic Eight Ball your question! 🎱", type="messages")
chatbot.launch()