ChatbotLesson / app.py
sarahrobe's picture
Update app.py
8d2594d verified
Raw
History Blame Contribute Delete
218 Bytes
import gradio as gr
import random
def respond_randomly(message, history):
message_options = ["yes", "no"]
return random.choice(message_options)
chatbot = gr.ChatInterface(respond_randomly)
chatbot.launch()