File size: 613 Bytes
f0d8b9a
75829e1
f0d8b9a
5f9eb85
75829e1
 
 
 
55ffdf0
 
75829e1
55ffdf0
 
 
4752ceb
f0d8b9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(eight_ball, title="Cassie's 8s", description="Let my magic 8 ball predict the future! Chatbot interacted with at your own risk",type="messages") #defining my chatbot so user can interact
chatbot.launch()