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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -325,14 +325,14 @@ def run_client():
325
  text = """
326
  <h2 style='color: black;'>Possible Candidates:</h2>
327
  <ul style='color: black;'>
328
- """ + "".join(f"<li style='color: black;'>{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;'>{candidate}</li>" for candidate in dict_of_ents_candidates["ents"][0:10]) + "</ul>"
336
 
337
  st.markdown(text, unsafe_allow_html=True)
338
  else:
 
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: