leahb commited on
Commit
0f9412d
·
verified ·
1 Parent(s): c4756aa

added more responses and changed the title

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
2
  import random
3
 
4
  def echo(message, history):
5
- choices = ["yes", "no"]
6
  new = random.choice(choices)
7
  return new
8
 
9
- chatbot = gr.ChatInterface(echo, type = "messages", title = "KWK Chatbot")
10
 
11
  chatbot.launch()
 
2
  import random
3
 
4
  def echo(message, history):
5
+ choices = ["yes", "no", "better not tell you now", "without a doubt", "very doubtful", "cannot predict now", "you may rely on it", "don't count on it", "reply hazy, try again"]
6
  new = random.choice(choices)
7
  return new
8
 
9
+ chatbot = gr.ChatInterface(echo, type = "messages", title = "Magic 8 Ball")
10
 
11
  chatbot.launch()