Spaces:
Sleeping
Sleeping
use MeiPhi-Clinical
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def json_section_to_text(json_obj):
|
|
| 81 |
# Create a text generation pipeline to generate patient instructions.
|
| 82 |
|
| 83 |
from transformers import pipeline
|
| 84 |
-
generator = pipeline("text-generation", model="
|
| 85 |
|
| 86 |
def summarize_notes(patient_id):
|
| 87 |
treatment_text = get_treatment_plan_from_patient_id(patient_id)
|
|
|
|
| 81 |
# Create a text generation pipeline to generate patient instructions.
|
| 82 |
|
| 83 |
from transformers import pipeline
|
| 84 |
+
generator = pipeline("text-generation", model="microsoft/MediPhi-Clinical", max_new_tokens=256, do_sample=True)
|
| 85 |
|
| 86 |
def summarize_notes(patient_id):
|
| 87 |
treatment_text = get_treatment_plan_from_patient_id(patient_id)
|