reedmayhew commited on
Commit
44236a7
·
verified ·
1 Parent(s): 816374b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ def chat_with_openai(message: str, history: list, temperature: float, max_new_to
137
  # Immediately yield a "thinking" status message.
138
  yield "HealthAssistant is Thinking! Please wait, your response will output shortly...\n\n"
139
 
140
- think_result = think(message)
141
 
142
  # Force the model to begin its answer with a "<think>" block.
143
  conversation.append({"role": "assistant", "content": "<think>\n"+think_result+"\n</think>"})
 
137
  # Immediately yield a "thinking" status message.
138
  yield "HealthAssistant is Thinking! Please wait, your response will output shortly...\n\n"
139
 
140
+ think_result = think(conversation)
141
 
142
  # Force the model to begin its answer with a "<think>" block.
143
  conversation.append({"role": "assistant", "content": "<think>\n"+think_result+"\n</think>"})