ChatbotLab / app.py
Cass13's picture
parameters correctly
35e69bd verified
raw
history blame
626 Bytes
import gradio as gr
import random
#def echo(message, history):
# return message #making an echo ting
#def yes_or_no(message, history):
# return random.choice(["Yes", "No"])
def eight_ball(message, history):
return random.choice(["Yes", "No", "It is looking likely", "If the stars align", "Maybe...", "Cannot confirm or deny", "It is 50/50", "That, I cannot answer"])
chatbot = gr.ChatInterface(title="Cassie's 8s", description="Let my magic 8 ball predict the future! Chatbot interacted with at your own risk", eight_ball, submit_btn, type="messages") #defining my chatbot so user can interact
chatbot.launch()