Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import random as rd
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes","no"]
|
| 6 |
-
rd.choices
|
| 7 |
-
return
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 10 |
|
|
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes","no"]
|
| 6 |
+
random_choice = rd.choice(choices)
|
| 7 |
+
return random_choice
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type = "messages")
|
| 10 |
|