Spaces:
Sleeping
Sleeping
MagicEightBall.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import random
|
|
| 10 |
|
| 11 |
# chatbot = gr.ChatInterface(yesNoRandom, type = "messages", title = "Yes or No Bot", description = "This chatbot randomly repsonds to questions with yes or no.")
|
| 12 |
|
| 13 |
-
def magicEightBall(message,history)
|
| 14 |
response=["It's certain", "Try Again", "Chances are low", "Yes", "no", "Unlikley", "likley","Ask later"]
|
| 15 |
return random.choice(response)
|
| 16 |
chatbot=gr.ChatInterface(magicEightBall, type="messages", title,"Magic eight Ball",theme='d8ahazard/material_design_rd')
|
|
|
|
| 10 |
|
| 11 |
# chatbot = gr.ChatInterface(yesNoRandom, type = "messages", title = "Yes or No Bot", description = "This chatbot randomly repsonds to questions with yes or no.")
|
| 12 |
|
| 13 |
+
def magicEightBall(message,history):
|
| 14 |
response=["It's certain", "Try Again", "Chances are low", "Yes", "no", "Unlikley", "likley","Ask later"]
|
| 15 |
return random.choice(response)
|
| 16 |
chatbot=gr.ChatInterface(magicEightBall, type="messages", title,"Magic eight Ball",theme='d8ahazard/material_design_rd')
|