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