Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -314,19 +314,19 @@ with col1:
|
|
314 |
trans_df = pd.DataFrame(table)
|
315 |
|
316 |
with col2:
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
|
331 |
|
332 |
|
|
|
314 |
trans_df = pd.DataFrame(table)
|
315 |
|
316 |
with col2:
|
317 |
+
st.button('NER'):
|
318 |
+
st.markdown('**CHIEF COMPLAINT:**')
|
319 |
+
st.write(str(AdmissionChiefCom))
|
320 |
+
st.markdown('**ADMISSION DIAGNOSIS:**')
|
321 |
+
st.markdown(str(diagnosis))
|
322 |
+
st.markdown('**PROBLEM/ISSUE**')
|
323 |
+
genEntities(trans_df, 'DISEASE')
|
324 |
+
st.markdown('**MEDICATION**')
|
325 |
+
genEntities(trans_df, 'CHEMICAL')
|
326 |
+
#st.table(trans_df)
|
327 |
+
st.markdown('**NER**')
|
328 |
+
with st.expander("See NER Details"):
|
329 |
+
st.markdown(ent_html, unsafe_allow_html=True)
|
330 |
|
331 |
|
332 |
|