Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,25 +90,25 @@ class SinaReasonMedicalChat:
|
|
| 90 |
index_end_think = MEDICAL_SYSTEM_PROMPT.find("[/THINK]")
|
| 91 |
|
| 92 |
# Apply the chat template with the medical system prompt
|
| 93 |
-
messages = [
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
]
|
| 112 |
|
| 113 |
# Add conversation history
|
| 114 |
for user_msg, assistant_msg in history:
|
|
|
|
| 90 |
index_end_think = MEDICAL_SYSTEM_PROMPT.find("[/THINK]")
|
| 91 |
|
| 92 |
# Apply the chat template with the medical system prompt
|
| 93 |
+
# messages = [
|
| 94 |
+
# {
|
| 95 |
+
# "role": "system",
|
| 96 |
+
# "content": [
|
| 97 |
+
# {"type": "text", "text": MEDICAL_SYSTEM_PROMPT[:index_begin_think]},
|
| 98 |
+
# {
|
| 99 |
+
# "type": "thinking",
|
| 100 |
+
# "thinking": MEDICAL_SYSTEM_PROMPT[
|
| 101 |
+
# index_begin_think + len("[THINK]") : index_end_think
|
| 102 |
+
# ],
|
| 103 |
+
# "closed": True,
|
| 104 |
+
# },
|
| 105 |
+
# {
|
| 106 |
+
# "type": "text",
|
| 107 |
+
# "text": MEDICAL_SYSTEM_PROMPT[index_end_think + len("[/THINK]") :],
|
| 108 |
+
# },
|
| 109 |
+
# ],
|
| 110 |
+
# }
|
| 111 |
+
# ]
|
| 112 |
|
| 113 |
# Add conversation history
|
| 114 |
for user_msg, assistant_msg in history:
|