Spaces:
Sleeping
Sleeping
Magic 8 Ball
Browse files
app.py
CHANGED
|
@@ -2,8 +2,9 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def respond(message, history):
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
-
chatbot = gr.ChatInterface(
|
| 8 |
|
| 9 |
chatbot.launch()
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def respond(message, history):
|
| 5 |
+
answers = ["Maybe", "Absolutely", "Probs Not", "Unlikely", "It is decidedly so", "Signs point to no"]
|
| 6 |
+
return random.choice(answers)
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(respond)
|
| 9 |
|
| 10 |
chatbot.launch()
|