carisackc commited on
Commit
d2e32eb
·
1 Parent(s): 00bc252

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -70,9 +70,11 @@ df3["CHARTDATE_HADM_ID"] = df3["CHARTDATE"].astype(str) +' ('+ df3["HADM_ID"] +'
70
  df3["DIAGNOSIS"] = df3["DIAGNOSIS"].str.capitalize()
71
  df3["DISCHARGE_LOCATION"] = df3["DISCHARGE_LOCATION"].str.capitalize()
72
 
73
- df3["TEXT"] =df3["TEXT"].replace(r'\n',' \n ', regex=True)
 
74
  df3["BertSummarizer"] =df3["BertSummarizer"].replace(r'#',' ', regex=True)
75
 
 
76
  #Renaming column
77
  df.rename(columns={'SUBJECT_ID':'Patient_ID',
78
  'HADM_ID':'Admission_ID',
@@ -140,9 +142,7 @@ with st.container():
140
  # inputNote = "Input Social Note"
141
  with col5:
142
  btnPastHistory = st.button('📇Past History (6 Mths)')
143
- if btnPastHistory:
144
- inputNote = "Input History records"
145
-
146
 
147
 
148
  ##========= on Past History Tab =========
 
70
  df3["DIAGNOSIS"] = df3["DIAGNOSIS"].str.capitalize()
71
  df3["DISCHARGE_LOCATION"] = df3["DISCHARGE_LOCATION"].str.capitalize()
72
 
73
+ df3["TEXT"] =df3["TEXT"].replace(r'\n',' \n ', regex=True)
74
+ df3["TEXT"] =df3["TEXT"].replace(r'#',' ', regex=True)
75
  df3["BertSummarizer"] =df3["BertSummarizer"].replace(r'#',' ', regex=True)
76
 
77
+
78
  #Renaming column
79
  df.rename(columns={'SUBJECT_ID':'Patient_ID',
80
  'HADM_ID':'Admission_ID',
 
142
  # inputNote = "Input Social Note"
143
  with col5:
144
  btnPastHistory = st.button('📇Past History (6 Mths)')
145
+
 
 
146
 
147
 
148
  ##========= on Past History Tab =========