Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -115,8 +115,7 @@ with st.container():
|
|
115 |
|
116 |
if btnPastHistory:
|
117 |
st.text_area('Past History','Date of discharge: xxxxxxxxx')
|
118 |
-
|
119 |
-
st.write( str(original_text2))
|
120 |
else:
|
121 |
runtext =st.text_area(inputNote, str(original_text2), height=300)
|
122 |
|
@@ -190,11 +189,16 @@ options = {"ents": [ "DISEASE", "CHEMICAL"],"colors": colors}
|
|
190 |
ent_html = displacy.render(doc, style="ent", options=options)
|
191 |
|
192 |
col1, col2 = st.columns([1,1])
|
|
|
193 |
with col1:
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
|
|
|
|
|
|
|
|
198 |
##====== Storing the Diseases/Text
|
199 |
table= {"Entity":[], "Class":[]}
|
200 |
ent_bc = {}
|
|
|
115 |
|
116 |
if btnPastHistory:
|
117 |
st.text_area('Past History','Date of discharge: xxxxxxxxx')
|
118 |
+
|
|
|
119 |
else:
|
120 |
runtext =st.text_area(inputNote, str(original_text2), height=300)
|
121 |
|
|
|
189 |
ent_html = displacy.render(doc, style="ent", options=options)
|
190 |
|
191 |
col1, col2 = st.columns([1,1])
|
192 |
+
|
193 |
with col1:
|
194 |
+
if not(btnPastHistory): #to not show summary and references text for Past History
|
195 |
+
st.button('Summarize')
|
196 |
+
run_model(runtext)
|
197 |
+
#sentences=runtext.split('.')
|
198 |
+
st.text_area('Reference text', str(reference_text), height=150)
|
199 |
+
else:
|
200 |
+
with st.expander('Full Discharge Summary'):
|
201 |
+
st.write( str(original_text2))
|
202 |
##====== Storing the Diseases/Text
|
203 |
table= {"Entity":[], "Class":[]}
|
204 |
ent_bc = {}
|