Spaces:
Sleeping
Sleeping
Added a magic 8 ball function
Browse files
app.py
CHANGED
|
@@ -4,6 +4,9 @@ import random
|
|
| 4 |
def yes_or_no(message, history):
|
| 5 |
return random.choice(["Yes","No"])
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
print ("Hello, world!")
|
| 8 |
-
chatBot = gr.ChatInterface(
|
| 9 |
chatBot.launch()
|
|
|
|
| 4 |
def yes_or_no(message, history):
|
| 5 |
return random.choice(["Yes","No"])
|
| 6 |
|
| 7 |
+
def magic8(message, history):
|
| 8 |
+
return random.choice(["Maybe... Let's see your luck!", "Of course! Don't even doubt it.", "Of course NOT! There's no chance!", "Try again", "Never in a billion years", "Is the sky blue?"])
|
| 9 |
+
|
| 10 |
print ("Hello, world!")
|
| 11 |
+
chatBot = gr.ChatInterface(magic8, type = "messages")
|
| 12 |
chatBot.launch()
|