YesNoChatbot / app.py
polinapred's picture
Added flair
656068f verified
raw
history blame contribute delete
572 Bytes
import gradio as gr
import random
def response(message, history):
return random.choice(["Yes", "No", "Yeah… but don’t mess it up", "Ask again after you survive Monday.", "Signs point to yes, but your luck is questionable.", "Absolutely not. Try again in another timeline.", "The universe says chill first.", "It’s giving… maybe.", "Yes, but it’ll be awkward.", "Reply hazy, brain buffering…", "You already know the answer. You just don’t like it."])
chatbot = gr.ChatInterface(response, title="8 Ball", description="Ask me anything!")
chatbot.launch()