ChatbotLab_Aug7 / app.py
Janec09's picture
Update app.py
49f75c7 verified
raw
history blame
511 Bytes
import gradio as gr
import random
def magic_8_ball(message, history):
return random.choice(['yes', 'no', 'maybe'])
#def yes_or_no(message, history):
# return random.choice(['Yes', 'No'])
#def echo(message, history):
# return message
print("Hello World!")
chatbot = gr.ChatInterface(magic_8_ball, title = "Magic 8 Ball", description = "Let's play magic 8 ball!", type = "messages")
#defining my chatbot so users can interact and see their conversation history and send new messages!
chatbot.launch()