Spaces:
Sleeping
Sleeping
Updated the responses
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def random_response(message, history):
|
|
| 16 |
max_tokens = 100
|
| 17 |
)
|
| 18 |
#response_options = ["yes", "no", "I need more cosmic energy to answer.", "Very doubtful.", "Signs point to yes."]
|
| 19 |
-
return random.
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(random_response, title="Chatbot")
|
| 22 |
|
|
|
|
| 16 |
max_tokens = 100
|
| 17 |
)
|
| 18 |
#response_options = ["yes", "no", "I need more cosmic energy to answer.", "Very doubtful.", "Signs point to yes."]
|
| 19 |
+
return random.choices[0].message.content.strip()
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(random_response, title="Chatbot")
|
| 22 |
|