Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,10 @@ if "visibility" not in st.session_state:
|
|
24 |
#nlp = en_core_web_lg.load()
|
25 |
nlp = spacy.load("en_ner_bc5cdr_md")
|
26 |
|
27 |
-
st.set_page_config(page_title ='
|
28 |
#page_icon= "Notes",
|
29 |
layout='wide')
|
30 |
-
st.title('
|
31 |
st.markdown(
|
32 |
"""
|
33 |
<style>
|
@@ -161,11 +161,8 @@ if btnPastHistory:
|
|
161 |
historyAdmission = df3.query(
|
162 |
"Patient_ID == @patient & CHARTDATE_HADM_ID == @pastHistory"
|
163 |
)
|
164 |
-
|
165 |
-
|
166 |
-
elif model == "t5seq2eq":
|
167 |
-
runtext = historyAdmission['t5seq2eq'].values[0]
|
168 |
-
|
169 |
else:
|
170 |
runtext =st.text_area(inputNote, str(original_text2), height=300)
|
171 |
|
@@ -353,7 +350,7 @@ else:
|
|
353 |
st.markdown(str(historyAdmission['BertSummarizer'].values[0]))
|
354 |
elif model == "t5seq2eq":
|
355 |
st.markdown(str(historyAdmission['t5seq2eq'].values[0]))
|
356 |
-
st.markdown('Diagnosis: ' + str(historyAdmission['
|
357 |
st.markdown('**PROBLEM/ISSUE**')
|
358 |
st.markdown(f'<p style="background-color:PINK;color:#080808;font-size:16px;">{str(problem_entities)[1:-1]}</p>', unsafe_allow_html=True)
|
359 |
st.markdown('**MEDICATION**')
|
|
|
24 |
#nlp = en_core_web_lg.load()
|
25 |
nlp = spacy.load("en_ner_bc5cdr_md")
|
26 |
|
27 |
+
st.set_page_config(page_title ='Patient Inpatient Progression Dashboard',
|
28 |
#page_icon= "Notes",
|
29 |
layout='wide')
|
30 |
+
st.title('Patient Inpatient Progression Dashboard')
|
31 |
st.markdown(
|
32 |
"""
|
33 |
<style>
|
|
|
161 |
historyAdmission = df3.query(
|
162 |
"Patient_ID == @patient & CHARTDATE_HADM_ID == @pastHistory"
|
163 |
)
|
164 |
+
runtext = historyAdmission['TEXT'].values[0]
|
165 |
+
|
|
|
|
|
|
|
166 |
else:
|
167 |
runtext =st.text_area(inputNote, str(original_text2), height=300)
|
168 |
|
|
|
350 |
st.markdown(str(historyAdmission['BertSummarizer'].values[0]))
|
351 |
elif model == "t5seq2eq":
|
352 |
st.markdown(str(historyAdmission['t5seq2eq'].values[0]))
|
353 |
+
st.markdown('Diagnosis: ' + str(historyAdmission['Diagnosis_Description'].values[0]))
|
354 |
st.markdown('**PROBLEM/ISSUE**')
|
355 |
st.markdown(f'<p style="background-color:PINK;color:#080808;font-size:16px;">{str(problem_entities)[1:-1]}</p>', unsafe_allow_html=True)
|
356 |
st.markdown('**MEDICATION**')
|