Spaces:
Sleeping
Sleeping
Amanda Sackey
commited on
Update to yes or no random responses
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ def respond_yes_no_randomly(message, history):
|
|
| 5 |
responses = ["Yes","No"] #added here
|
| 6 |
return random.choice(responses) #added here
|
| 7 |
|
| 8 |
-
|
| 9 |
chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title = "Yes No BOT") #chatbot UI - conversion history and user input
|
| 10 |
|
| 11 |
chatbot.launch()
|
|
|
|
| 5 |
responses = ["Yes","No"] #added here
|
| 6 |
return random.choice(responses) #added here
|
| 7 |
|
| 8 |
+
|
| 9 |
chatbot = gr.ChatInterface(respond_yes_no_randomly, type="messages", title = "Yes No BOT") #chatbot UI - conversion history and user input
|
| 10 |
|
| 11 |
chatbot.launch()
|