fixed bugs
Browse files
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
|
| 21 |
-
|
| 22 |
|
| 23 |
-
chatbot = gr.ChatInterface(
|
| 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()
|