Aditi_ChatBot_1 / app.py
aditijuluri's picture
Update app.py
88af65f verified
raw
history blame contribute delete
476 Bytes
import gradio as gr
import random
def echo(message, history):
return(message)
def yes_no(message,history):
responses = ["all signs point to yes", "outlook is good", "not likely", "ask again later", "perhaps", "my sources say no", "you may rely on it"]
return random.choice(responses)
chatbot = gr.ChatInterface(yes_no, type="messages", title = "aditigpt", description = "worlds most accurate chatbot!", theme = "Taithrah/Minimal")
chatbot.launch()