carisackc commited on
Commit
ec9fad9
·
1 Parent(s): ceb7b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -367,10 +367,11 @@ if btnAdmission or st.session_state["button_clicked"]:
367
 
368
 
369
  elif btnDailyNarrative or st.session_state["daily_button_clicked"]:
370
- st.session_state["daily_button_clicked"] = True
371
  st.session_state["past_button_clicked"] = False
372
  st.session_state["button_clicked"] = False
373
-
 
374
  with st.container():
375
  st.markdown('Daily Progress Note (24 hour event only):')
376
  st.markdown(str(dailyNote)[1:-1])
@@ -383,9 +384,10 @@ elif btnDailyNarrative or st.session_state["daily_button_clicked"]:
383
 
384
  #else:
385
  elif btnPastHistory or st.session_state["past_button_clicked"]:
 
386
  st.session_state["past_button_clicked"] = True
387
  st.session_state["button_clicked"] = False
388
- st.session_state["daily_button_clicked"] = False
389
  # ===== Adding the Disease/Chemical into a list =====
390
  problem_entities = list(dedupe([t for t in doc0.ents if t.label_ == 'DISEASE']))
391
  medication_entities = list(dedupe([t for t in doc0.ents if t.label_ == 'CHEMICAL']))
 
367
 
368
 
369
  elif btnDailyNarrative or st.session_state["daily_button_clicked"]:
370
+
371
  st.session_state["past_button_clicked"] = False
372
  st.session_state["button_clicked"] = False
373
+ st.session_state["daily_button_clicked"] = True
374
+
375
  with st.container():
376
  st.markdown('Daily Progress Note (24 hour event only):')
377
  st.markdown(str(dailyNote)[1:-1])
 
384
 
385
  #else:
386
  elif btnPastHistory or st.session_state["past_button_clicked"]:
387
+ st.session_state["daily_button_clicked"] = False
388
  st.session_state["past_button_clicked"] = True
389
  st.session_state["button_clicked"] = False
390
+
391
  # ===== Adding the Disease/Chemical into a list =====
392
  problem_entities = list(dedupe([t for t in doc0.ents if t.label_ == 'DISEASE']))
393
  medication_entities = list(dedupe([t for t in doc0.ents if t.label_ == 'CHEMICAL']))