Spaces:
Sleeping
Sleeping
8 BALLLL
Browse files
app.py
CHANGED
|
@@ -6,8 +6,11 @@ import random
|
|
| 6 |
#def echo(message, history):
|
| 7 |
# return message #making an echo ting
|
| 8 |
|
| 9 |
-
def yes_or_no(message, history):
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
chatbot.launch()
|
|
|
|
| 6 |
#def echo(message, history):
|
| 7 |
# return message #making an echo ting
|
| 8 |
|
| 9 |
+
#def yes_or_no(message, history):
|
| 10 |
+
# return random.choice(["Yes", "No"])
|
| 11 |
|
| 12 |
+
def eight_ball(message, history):
|
| 13 |
+
return random.choice(["Yes", "No", "It is looking likely", "If the stars align", "Maybe...", "Cannot confirm or deny", "It is 50/50", "That, I cannot answer"])
|
| 14 |
+
|
| 15 |
+
chatbot = gr.ChatInterface(eight_ball, type="messages") #defining my chatbot so user can interact
|
| 16 |
chatbot.launch()
|