dogoodson commited on
Commit
e1b5911
·
1 Parent(s): a5303e2

use MeiPhi-Clinical

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="gpt2", max_new_tokens=100, do_sample=False)
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)