evacado commited on
Commit
4a2a4fd
·
verified ·
1 Parent(s): 0a91e85

fixed bugs

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -11,15 +11,15 @@ responses = [
11
  "Don't count on it.",
12
  "It is certain.",
13
  "Very doubtful.",
14
- "Better not tell you now."
15
- "No way."
16
- "For sure!"
17
  "NEVER!!"
18
  ]
19
 
20
- def random(message, history):
21
- return random.choice(responses)
22
 
23
- chatbot = gr.ChatInterface(random)
24
 
25
- chatbot.launch()
 
11
  "Don't count on it.",
12
  "It is certain.",
13
  "Very doubtful.",
14
+ "Better not tell you now.",
15
+ "No way.",
16
+ "For sure!",
17
  "NEVER!!"
18
  ]
19
 
20
+ def magic_8_ball(message, history):
21
+ return random.choice(responses)
22
 
23
+ chatbot = gr.ChatInterface(magic_8_ball)
24
 
25
+ chatbot.launch()