ChatbotLab / app.py
Emma-KWK-08's picture
Update app.py
738d773 verified
raw
history blame contribute delete
292 Bytes
import gradio as gr
import random
def magic_8_ball(message, history):
return random.choice(['Yes', 'No','Maybe','Probably not..','For sure!' ])
#def echo(message, history):
# return message
print("Hello!")
chatbot = gr.ChatInterface(yes_or_no, type='messages')
chatbot.launch()