Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,8 @@ import random
|
|
| 4 |
answers = ["yes", "no"]
|
| 5 |
|
| 6 |
def yes_or_no(messages):
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
chatbot = gr.ChatInterface(yes_or_no, type="messages")
|
| 10 |
chatbot.launch()
|
|
|
|
| 4 |
answers = ["yes", "no"]
|
| 5 |
|
| 6 |
def yes_or_no(messages):
|
| 7 |
+
random_choice = random.choice(answers)
|
| 8 |
+
return random_choice
|
| 9 |
|
| 10 |
chatbot = gr.ChatInterface(yes_or_no, type="messages")
|
| 11 |
chatbot.launch()
|