Spaces:
Sleeping
Sleeping
try again
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import random
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
-
yes_or_no = choices[random.random()]
|
| 7 |
return yes_or_no
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type = "message")
|
|
|
|
| 3 |
|
| 4 |
def echo(message, history):
|
| 5 |
choices = ["yes", "no"]
|
| 6 |
+
yes_or_no = int(choices[random.random()])
|
| 7 |
return yes_or_no
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(echo, type = "message")
|