ChatBot / app.py
ishaandtotoro's picture
Update app.py
2c41dc6 verified
raw
history blame contribute delete
508 Bytes
import gradio as gr
import random
# Chat function: Respond with what we said
def echo(message, history):
return message
def yes_no(message, history):
responses = ['Yes', 'No', 'Oh I dont think so', 'Affirmative', 'All signs point to yes', 'Maybe', 'Negative']
return random.choice(responses)
# print('Hello World')
chatbot = gr.ChatInterface(yes_no, type='messages', title= "Totoro's ChatBot", description= "This is Totoro approved >.<", theme= 'Taithrah/Minimal')
chatbot.launch()