Spaces:
Sleeping
Sleeping
added the eightball function
Browse files
app.py
CHANGED
|
@@ -8,6 +8,10 @@ def echo(message, history):
|
|
| 8 |
|
| 9 |
def yesOrNo(message, history):
|
| 10 |
return random.choice(["yes", "no"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
chatbot = gr.ChatInterface(yesOrNo, type = 'messages')
|
| 13 |
chatbot.launch()
|
|
|
|
| 8 |
|
| 9 |
def yesOrNo(message, history):
|
| 10 |
return random.choice(["yes", "no"])
|
| 11 |
+
|
| 12 |
+
def eightBall(message, history):
|
| 13 |
+
return random.choice(["It is certain", "Without a doubt", "Yes", "Yes, definitely", "Most likely", "Don't count on it", "My reply is no", "no", "Outlook not so good", "Very doubtful.", "Ask again later",
|
| 14 |
+
"Cannot predict now"])
|
| 15 |
|
| 16 |
chatbot = gr.ChatInterface(yesOrNo, type = 'messages')
|
| 17 |
chatbot.launch()
|