yasserrmd commited on
Commit
ef37858
·
verified ·
1 Parent(s): 188b27c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
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
- "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:
 
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: