Yuvalamitay's picture
Update app.py
df16d86 verified
raw
history blame
345 Bytes
import gradio as gr
import random
def echo(message, history):
return(message)
def yes_no(message, history):
responses = ["Yes", "No"]
return random.choice(responses)
chatbot = gr.ChatInterface(yes_no, type = "messages", title="The best chat bot", description="Ask it Yes or No questions", theme='gstaff/sketch')
chatbot.launch()