Saachi-S123 commited on
Commit
c8f669b
·
verified ·
1 Parent(s): 2817913

added new properties to the chatbot

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ def respond_magic_eight_ball(message, history):
5
  responses = random.choices (["It is certain", "It is decidedly so","Without a doubt", "Yes, definitely", "You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Don't count on it", "My reply is no"," My sources say no", "Outlook not so good", "Very doubtful" ])
6
  return random.choice (responses)
7
 
8
- chatbot = gr.ChatInterface(respond_magic_eight_ball, type='messages')
9
  chatbot.launch()
10
 
11
 
 
5
  responses = random.choices (["It is certain", "It is decidedly so","Without a doubt", "Yes, definitely", "You may rely on it", "As I see it, yes", "Most likely", "Outlook good", "Yes", "Signs point to yes", "Don't count on it", "My reply is no"," My sources say no", "Outlook not so good", "Very doubtful" ])
6
  return random.choice (responses)
7
 
8
+ chatbot = gr.ChatInterface(respond_magic_eight_ball, type='messages', title = "Magic 8 Ball", description = "Ask me your most pressing questions!", theme = "mgetz/Celeb_glitzy")
9
  chatbot.launch()
10
 
11