Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
|
|
139 |
# Indicate that the assistant is thinking.
|
140 |
yield "HealthAssistant is Thinking! Please wait, your response will output shortly. This may take 30-60 seconds...\n\n"
|
141 |
think_result = think(conversation)
|
142 |
-
conversation.append({"role": "assistant", "content": "<think>\n" + think_result + "\n</think>"})
|
143 |
else:
|
144 |
yield "HealthAssistant is Thinking! Please wait, your response will output shortly...\n\n"
|
145 |
|
|
|
139 |
# Indicate that the assistant is thinking.
|
140 |
yield "HealthAssistant is Thinking! Please wait, your response will output shortly. This may take 30-60 seconds...\n\n"
|
141 |
think_result = think(conversation)
|
142 |
+
conversation.append({"role": "assistant", "content": "<think>\n" + think_result + "\n</think> I will now provide a response:\n\n"})
|
143 |
else:
|
144 |
yield "HealthAssistant is Thinking! Please wait, your response will output shortly...\n\n"
|
145 |
|