amakaagwo's picture
Update app.py
6ae5ad9 verified
raw
history blame contribute delete
374 Bytes
import gradio as gr
import random #added here
def respond_yes_no_randomly(message,history):
responses = ["Yes", "No"] #added here
return random.choice(responses) #added here
print ("Hello, world!")
chatbot = gr.ChatInterface(respond_yes_no_randomly, type = "messages", title ="Yes No Bot") #chatbotUI - conversation history and user input
chatbot.launch()