Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
| 178 |
-
|
| 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
|