carisackc commited on
Commit
d8740b5
β€’
1 Parent(s): fd81714

Update pages/2_πŸ“†_Daily Narrative.py

Browse files
pages/2_πŸ“†_Daily Narrative.py CHANGED
@@ -160,12 +160,12 @@ def run_model(input_text):
160
  col1, col2 = st.columns([1,1])
161
 
162
  with col1:
163
- if st.button('Summarize')
164
  run_model(runtext)
165
  sentences=runtext.split('.')
166
  st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")
167
  with col2:
168
- if st.button('NER')
169
  doc = nlp(str(original_text2))
170
  colors = { "DISEASE": "pink","CHEMICAL": "orange"}
171
  options = {"ents": [ "DISEASE", "CHEMICAL"],"colors": colors}
 
160
  col1, col2 = st.columns([1,1])
161
 
162
  with col1:
163
+ if st.button('Summarize'):
164
  run_model(runtext)
165
  sentences=runtext.split('.')
166
  st.text_area('Reference text', str(reference_text))#,label_visibility="hidden")
167
  with col2:
168
+ if st.button('NER'):
169
  doc = nlp(str(original_text2))
170
  colors = { "DISEASE": "pink","CHEMICAL": "orange"}
171
  options = {"ents": [ "DISEASE", "CHEMICAL"],"colors": colors}