Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -302,19 +302,19 @@ with col1:
|
|
302 |
trans_df = pd.DataFrame(table)
|
303 |
|
304 |
with col2:
|
305 |
-
st.button('NER')
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
|
319 |
|
320 |
|
|
|
302 |
trans_df = pd.DataFrame(table)
|
303 |
|
304 |
with col2:
|
305 |
+
if st.button('NER'):
|
306 |
+
st.markdown('**CHIEF COMPLAINT:**')
|
307 |
+
st.write(str(AdmissionChiefCom))
|
308 |
+
st.markdown('**ADMISSION DIAGNOSIS:**')
|
309 |
+
st.markdown(str(diagnosis))
|
310 |
+
st.markdown('**PROBLEM/ISSUE**')
|
311 |
+
genEntities(trans_df, 'DISEASE')
|
312 |
+
st.markdown('**MEDICATION**')
|
313 |
+
genEntities(trans_df, 'CHEMICAL')
|
314 |
+
#st.table(trans_df)
|
315 |
+
st.markdown('**NER**')
|
316 |
+
with st.expander("See NER Details"):
|
317 |
+
st.markdown(ent_html, unsafe_allow_html=True)
|
318 |
|
319 |
|
320 |
|