Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,8 @@ patientid = df['Patient_ID']
|
|
78 |
patient = st.sidebar.selectbox('Select Patient ID:', patientid)
|
79 |
admissionid = df['Admission_ID'].loc[df['Patient_ID'] == patient]
|
80 |
HospitalAdmission = st.sidebar.selectbox(' ', admissionid)
|
|
|
|
|
81 |
|
82 |
# List of Model available
|
83 |
model = st.sidebar.selectbox('Select Model', ('BertSummarizer','BertGPT2','t5seq2eq','t5','gensim','pysummarizer'))
|
@@ -92,14 +94,11 @@ original_text = df.query(
|
|
92 |
"Patient_ID == @patient & Admission_ID == @HospitalAdmission"
|
93 |
)
|
94 |
|
95 |
-
pastHistory = df3.query(
|
96 |
-
"Patient_ID == @patient & INDEX_HADM_ID == @HospitalAdmission"
|
97 |
-
)
|
98 |
original_text2 = original_text['Original_Text'].values
|
99 |
AdmissionChiefCom = original_text['Admission_Chief_Complaint'].values
|
100 |
diagnosis =original_text['DIAGNOSIS'].values
|
101 |
reference_text = original_text['Reference_text'].values
|
102 |
-
|
103 |
|
104 |
|
105 |
##========= Buttons to the 5 tabs ======== Temp disabled Discharge Plan and Social Notes
|
@@ -145,7 +144,7 @@ with st.container():
|
|
145 |
with col8:
|
146 |
#st.date_input('Select Admission Date') # To replace with a dropdown filter instead
|
147 |
#st.selectbox('Past Episodes',pastHistoryEp)
|
148 |
-
st.
|
149 |
|
150 |
|
151 |
|
|
|
78 |
patient = st.sidebar.selectbox('Select Patient ID:', patientid)
|
79 |
admissionid = df['Admission_ID'].loc[df['Patient_ID'] == patient]
|
80 |
HospitalAdmission = st.sidebar.selectbox(' ', admissionid)
|
81 |
+
pastHistoryEpid = df3['INDEX_HADM_ID'].loc[df['Patient_ID'] == patient]
|
82 |
+
|
83 |
|
84 |
# List of Model available
|
85 |
model = st.sidebar.selectbox('Select Model', ('BertSummarizer','BertGPT2','t5seq2eq','t5','gensim','pysummarizer'))
|
|
|
94 |
"Patient_ID == @patient & Admission_ID == @HospitalAdmission"
|
95 |
)
|
96 |
|
|
|
|
|
|
|
97 |
original_text2 = original_text['Original_Text'].values
|
98 |
AdmissionChiefCom = original_text['Admission_Chief_Complaint'].values
|
99 |
diagnosis =original_text['DIAGNOSIS'].values
|
100 |
reference_text = original_text['Reference_text'].values
|
101 |
+
|
102 |
|
103 |
|
104 |
##========= Buttons to the 5 tabs ======== Temp disabled Discharge Plan and Social Notes
|
|
|
144 |
with col8:
|
145 |
#st.date_input('Select Admission Date') # To replace with a dropdown filter instead
|
146 |
#st.selectbox('Past Episodes',pastHistoryEp)
|
147 |
+
pastHistory = st.sidebar.selectbox(' ', pastHistoryEpid)
|
148 |
|
149 |
|
150 |
|