yasserrmd commited on
Commit
a5cb91b
·
verified ·
1 Parent(s): 721c5f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -151,8 +151,8 @@ class SinaReasonMedicalChat:
151
 
152
  print(partial_response)
153
  # Extract thinking and response
154
- thinking, response = self.extract_thinking_and_response(partial_response)
155
-
156
  # Show thinking phase while it's being generated
157
  if thinking and thinking != current_thinking:
158
  current_thinking = thinking
@@ -174,8 +174,8 @@ class SinaReasonMedicalChat:
174
  🩺 **Clinical Summary**
175
  {current_response}"""
176
 
177
- new_history = history + [[message, final_display]]
178
- yield "", new_history
179
 
180
 
181
  # Initialize the medical chat model
 
151
 
152
  print(partial_response)
153
  # Extract thinking and response
154
+ #thinking, response = self.extract_thinking_and_response(partial_response)
155
+ response = partial_response
156
  # Show thinking phase while it's being generated
157
  if thinking and thinking != current_thinking:
158
  current_thinking = thinking
 
174
  🩺 **Clinical Summary**
175
  {current_response}"""
176
 
177
+ new_history = history + [[message, final_display]]
178
+ yield "", new_history
179
 
180
 
181
  # Initialize the medical chat model