ChatbotLab_Aug7 / app.py
Janec09's picture
Update app.py
e7ae4a2 verified
raw
history blame
354 Bytes
import gradio as gr
import random
def yes_or_no(message, history):
return random.choice(['Yes', 'No'])
# def echo(message, history):
# return message
print("Hello World!")
chatbot = gr.ChatInterface(echo, type = "messages")
#defining my chatbot so users can interact and see their conversation history and send new messages!
chatbot.launch()