Bryan Mildort commited on
Commit
9c9b49c
·
2 Parent(s): 01db17d b6718dd

app.py updates

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -34,6 +34,7 @@ tokenizer = AutoTokenizer.from_pretrained("bryanmildort/gpt_jt_clinical_notes_su
34
  # device_map = infer_auto_device_map(model, dtype="float16")
35
  # st.write(device_map)
36
 
 
37
  prompt = """45 y F c/o nervousness x few weeks, not getting worse or better, constant, was the first time. No alleviating factors. Aggravated before having an English lecture. I work as an English professor, with stress. I also have a sleeping problem, started almost at the same time, and had difficulty falling asleep. They also report excessive appetite. Denies weight changes, healing intolerance, consitpation, dirrhea, black stools, and bladdy stools. Also denies excessive thirst and excessive urination. Mood=just nervous. No heart racing.
38
  ROS negative
39
  PMH is not a known medical condition. Meds tylenol when she has a headache. Alles NKDA. PSH none Hospi 2times when delivery
@@ -41,6 +42,9 @@ SH No smoking or illicit drugs. EOH 1,2 beers/wk socially since becoming an adul
41
  Sx is active with her husband. Never tested for HIV. no history of STDs
42
  OBGYN LMP 1wk ago, regular, 5days/28days cycle, 5pads/heavy day, menarch 11-12yo
43
  FH's father died of a heart attack at 65. mother is healthy"""
 
 
 
44
 
45
  prefix = """[Notes]: Ms. Whelan is a 26 yo woman who presents with palpitations, which have recently been occurring more frequently. She reports that she has episodes of 15-30 minutes of heart pounding, which is associated with shortness of breath, nausea, throat tightening, and a hot-to-cold feeling. A couple weeks ago one of these episodes was associated with some transient bilateral finger/hand numbness, which resolved but prompted her to visit the ED. In the last 5 years she has had 3-4 such episodes. However, she has been experiencing them every 2-3 days in the last 3 weeks. The patient notes that she was laid off from work 2 mos ago and is now seeking employment. Denies specific triggers.
46
 
 
34
  # device_map = infer_auto_device_map(model, dtype="float16")
35
  # st.write(device_map)
36
 
37
+ <<<<<<< HEAD
38
  prompt = """45 y F c/o nervousness x few weeks, not getting worse or better, constant, was the first time. No alleviating factors. Aggravated before having an English lecture. I work as an English professor, with stress. I also have a sleeping problem, started almost at the same time, and had difficulty falling asleep. They also report excessive appetite. Denies weight changes, healing intolerance, consitpation, dirrhea, black stools, and bladdy stools. Also denies excessive thirst and excessive urination. Mood=just nervous. No heart racing.
39
  ROS negative
40
  PMH is not a known medical condition. Meds tylenol when she has a headache. Alles NKDA. PSH none Hospi 2times when delivery
 
42
  Sx is active with her husband. Never tested for HIV. no history of STDs
43
  OBGYN LMP 1wk ago, regular, 5days/28days cycle, 5pads/heavy day, menarch 11-12yo
44
  FH's father died of a heart attack at 65. mother is healthy"""
45
+ =======
46
+ prompt = """81-year-old female with a history of emphysema (not on home O2), who presents with three days of shortness of breath thought by her primary care doctor to be a COPD flare. Two days prior to admission, she was started on a prednisone taper and one day prior to admission she required oxygen at home in order to maintain oxygen saturation greater than 90%. She has also been on levofloxacin and nebulizers, and was not getting better, and presented to the Emergency Room. In the Emergency Room, her oxygen saturation was100% on CPAP. She was not able to be weaned off of this despite nebulizer treatment and Solu-Medrol 125 mg IV x2.Review of systems is negative for the following: Fevers, chills, nausea, vomiting, night sweats, change in weight, gastrointestinal complaints, neurologic changes, rashes, palpitations, orthopnea. Is positive for the following: Chest pressure occasionally with shortness of breath with exertion, some shortness of breath that is positionally related, but is improved with nebulizer treatment."""
47
+ >>>>>>> b6718ddb461224aa1814d348061bd8f9fe6200ec
48
 
49
  prefix = """[Notes]: Ms. Whelan is a 26 yo woman who presents with palpitations, which have recently been occurring more frequently. She reports that she has episodes of 15-30 minutes of heart pounding, which is associated with shortness of breath, nausea, throat tightening, and a hot-to-cold feeling. A couple weeks ago one of these episodes was associated with some transient bilateral finger/hand numbness, which resolved but prompted her to visit the ED. In the last 5 years she has had 3-4 such episodes. However, she has been experiencing them every 2-3 days in the last 3 weeks. The patient notes that she was laid off from work 2 mos ago and is now seeking employment. Denies specific triggers.
50