Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def analyze(
|
|
| 26 |
"You are an advanced AI medical assistant. "
|
| 27 |
"Analyze the patient’s biomarkers and demographics. "
|
| 28 |
"Provide a structured assessment including: "
|
| 29 |
-
|
| 30 |
)
|
| 31 |
|
| 32 |
# Construct patient profile input
|
|
@@ -55,7 +55,7 @@ def analyze(
|
|
| 55 |
# Call LLM (exclude echoed input)
|
| 56 |
result = pipe(
|
| 57 |
prompt,
|
| 58 |
-
max_new_tokens=
|
| 59 |
do_sample=True,
|
| 60 |
temperature=0.6,
|
| 61 |
return_full_text=False
|
|
|
|
| 26 |
"You are an advanced AI medical assistant. "
|
| 27 |
"Analyze the patient’s biomarkers and demographics. "
|
| 28 |
"Provide a structured assessment including: "
|
| 29 |
+
"risk_assessment,Executive Summary,Specific Insights,biomarker impact, clinical_impression, recommendations for diet,Conclusions. "
|
| 30 |
)
|
| 31 |
|
| 32 |
# Construct patient profile input
|
|
|
|
| 55 |
# Call LLM (exclude echoed input)
|
| 56 |
result = pipe(
|
| 57 |
prompt,
|
| 58 |
+
max_new_tokens=2500,
|
| 59 |
do_sample=True,
|
| 60 |
temperature=0.6,
|
| 61 |
return_full_text=False
|