Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,12 @@ import random
|
|
| 4 |
|
| 5 |
# def echo(message, history):
|
| 6 |
# return message
|
| 7 |
-
def yes_or_no(message, history):
|
| 8 |
-
return random.choice(['Yes', 'No'])
|
|
|
|
|
|
|
| 9 |
|
| 10 |
print("Hello World!")
|
| 11 |
-
chatbot = gr.ChatInterface(
|
| 12 |
|
| 13 |
chatbot.launch()
|
|
|
|
| 4 |
|
| 5 |
# def echo(message, history):
|
| 6 |
# return message
|
| 7 |
+
# def yes_or_no(message, history):
|
| 8 |
+
# return random.choice(['Yes', 'No'])
|
| 9 |
+
def magic_ball(message, history):
|
| 10 |
+
return random.choice(['Try Again', 'Maybe', 'In The Future', 'Absolutely'])
|
| 11 |
|
| 12 |
print("Hello World!")
|
| 13 |
+
chatbot = gr.ChatInterface(magic_ball, type="messages")
|
| 14 |
|
| 15 |
chatbot.launch()
|