CarlosMalaga commited on
Commit
fd0f289
1 Parent(s): 46ba2ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -321,18 +321,18 @@ def run_client():
321
 
322
  with st.container():
323
  st.write(display, unsafe_allow_html=True)
324
-
325
  text = """
326
  <h2 style='color: black;'>Possible Candidates:</h2>
327
  <ul style='color: black;'>
328
- """ + "".join(f"<li style='color: black;'>Intervention: {candidate}</li>" if io_map[candidate] == "intervention" in else "".join(f"<li style='color: black;'>Outcome: {candidate}</li>" for candidate in dict_of_ents_candidates["ents"][2:12]) + "</ul>"
329
 
330
  st.markdown(text, unsafe_allow_html=True)
331
  else:
332
  text = """
333
  <h2 style='color: black;'>Possible Candidates:</h2>
334
  <ul style='color: black;'>
335
- """ + "".join(f"<li style='color: black;'>Intervention: {candidate}</li>" if io_map[candidate] == "intervention" in else "".join(f"<li style='color: black;'>Outcome: {candidate}</li>" for candidate in dict_of_ents_candidates["ents"][2:12]) + "</ul>"
336
 
337
  st.markdown(text, unsafe_allow_html=True)
338
  else:
 
321
 
322
  with st.container():
323
  st.write(display, unsafe_allow_html=True)
324
+ candidate_text = "".join(f"<li style='color: black;'>Intervention: {candidate}</li>" if io_map[candidate] == "intervention" else f"<li style='color: black;'>Outcome: {candidate}</li>" for candidate in dict_of_ents_candidates["ents"][0:10])
325
  text = """
326
  <h2 style='color: black;'>Possible Candidates:</h2>
327
  <ul style='color: black;'>
328
+ """ + candidate_text + "</ul>"
329
 
330
  st.markdown(text, unsafe_allow_html=True)
331
  else:
332
  text = """
333
  <h2 style='color: black;'>Possible Candidates:</h2>
334
  <ul style='color: black;'>
335
+ """ + "".join(f"<li style='color: black;'>{candidate}</li>" for candidate in dict_of_ents_candidates["ents"][2:12]) + "</ul>"
336
 
337
  st.markdown(text, unsafe_allow_html=True)
338
  else: