Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -93,13 +93,16 @@ patientid = col3.write(f"Patient ID: {patient} ")
|
|
93 |
admissionid =col4.write(f"Admission ID: {HospitalAdmission} ")
|
94 |
runtext = ''
|
95 |
|
|
|
|
|
|
|
96 |
##========= Buttons to the 4 tabs ========
|
97 |
col1, col2, col3, col4 = st.columns(4)
|
98 |
with col1:
|
99 |
# st.button('Admission')
|
100 |
-
|
101 |
#nav_page('Admission')
|
102 |
-
|
103 |
with col2:
|
104 |
if st.button('📆Daily Narrative'):
|
105 |
#nav_page('Daily Narrative')
|
@@ -118,11 +121,11 @@ original_text = df.query(
|
|
118 |
"Patient_ID == @patient & Admission_ID == @HospitalAdmission"
|
119 |
)
|
120 |
|
121 |
-
original_text2 = original_text['Original_Text'].values
|
122 |
|
123 |
|
124 |
|
125 |
-
|
|
|
126 |
|
127 |
def run_model(input_text):
|
128 |
|
|
|
93 |
admissionid =col4.write(f"Admission ID: {HospitalAdmission} ")
|
94 |
runtext = ''
|
95 |
|
96 |
+
original_text2 = original_text['Original_Text'].values
|
97 |
+
reference_text = original_text['Reference_text'].values
|
98 |
+
|
99 |
##========= Buttons to the 4 tabs ========
|
100 |
col1, col2, col3, col4 = st.columns(4)
|
101 |
with col1:
|
102 |
# st.button('Admission')
|
103 |
+
st.button("🏥 Admission")
|
104 |
#nav_page('Admission')
|
105 |
+
runtext =st.text_area('Input Admission note here:', str(original_text2), height=300)
|
106 |
with col2:
|
107 |
if st.button('📆Daily Narrative'):
|
108 |
#nav_page('Daily Narrative')
|
|
|
121 |
"Patient_ID == @patient & Admission_ID == @HospitalAdmission"
|
122 |
)
|
123 |
|
|
|
124 |
|
125 |
|
126 |
|
127 |
+
|
128 |
+
|
129 |
|
130 |
def run_model(input_text):
|
131 |
|