gpaasch commited on
Commit
28aec0b
·
1 Parent(s): 8237afe

prompt is now a string, not a tuple, copilot nailed this one

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -93,13 +93,13 @@ def on_submit(symptoms_text, history):
93
  md = getattr(node, 'metadata', {}) or {}
94
  context_list.append(f"{md.get('code','')}: {md.get('description','')}")
95
  context_text = "\n".join(context_list)
96
- prompt = (
97
- f"{SYSTEM_PROMPT}\n\n",
98
- f"User symptoms: '{cleaned}'\n\n",
99
- f"Relevant ICD-10 context:\n{context_text}\n\n",
100
- "Respond with your top 3 ICD-10 codes and their confidence scores.\n\n",
101
- "Think step by step and explain your reasoning.\n",
102
- )
103
 
104
  msg = "✏️ Prompt built"
105
  log.append(msg)
 
93
  md = getattr(node, 'metadata', {}) or {}
94
  context_list.append(f"{md.get('code','')}: {md.get('description','')}")
95
  context_text = "\n".join(context_list)
96
+ prompt = "\n".join([
97
+ f"{SYSTEM_PROMPT}",
98
+ f"User symptoms: '{cleaned}'",
99
+ f"Relevant ICD-10 context:\n{context_text}",
100
+ "Respond with your top 3 ICD-10 codes and their confidence scores.",
101
+ "Think step by step and explain your reasoning."
102
+ ])
103
 
104
  msg = "✏️ Prompt built"
105
  log.append(msg)