Spaces:
Sleeping
Sleeping
Added code to make it into Magic 8 Ball
Browse files
app.py
CHANGED
|
@@ -2,10 +2,10 @@ import gradio as gr
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message, history):
|
| 5 |
-
response_options = ["yes", "
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
-
chatbot = gr.ChatInterface(random_response, title = "
|
| 9 |
|
| 10 |
chatbot.launch()
|
| 11 |
|
|
|
|
| 2 |
import random
|
| 3 |
|
| 4 |
def random_response(message, history):
|
| 5 |
+
response_options = ["Points to a big yes!", "Error 404: Answer not found", "Not close", "Ask again", "You have got this!", "Better to pivot your plans", "The stars align for you", "Look forward to it!"]
|
| 6 |
return random.choice(response_options)
|
| 7 |
|
| 8 |
+
chatbot = gr.ChatInterface(random_response, title = "Magic 8 Ball 🔮")
|
| 9 |
|
| 10 |
chatbot.launch()
|
| 11 |
|