ChatbotLab / app.py
Cass13's picture
Coded yes or no function
75829e1 verified
raw
history blame
295 Bytes
import gradio as gr
import random
#def echo(message, history):
# return message #making an echo ting
def yes_or_no(message, history):
return random.choice(["Yes", "No"])
chatbot = gr.ChatInterface(yes_or_no, type="messages") #defining my chatbot so user can interact
chatbot.launch()