Spaces:
Build error
Build error
prompt is now a string, not a tuple, copilot nailed this one
Browse files
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}
|
| 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)
|
|
|
|
| 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)
|