Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,8 @@ import random
|
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
#use random to select one of these choices
|
| 7 |
-
|
| 8 |
-
return
|
| 9 |
|
| 10 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 11 |
|
|
|
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
#use random to select one of these choices
|
| 7 |
+
random_message = random.choice(choices)
|
| 8 |
+
return random_message
|
| 9 |
|
| 10 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 11 |
|