ChatbotLab_Aug7 / app.py
Janec09's picture
Update app.py
4205a70 verified
raw
history blame
436 Bytes
import gradio as gr
import random
def magic_8_ball(message, history):
return random.choice(['yes', 'no'])
#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, type = "messages")
#defining my chatbot so users can interact and see their conversation history and send new messages!
chatbot.launch()