Stefano Fiorucci commited on
Commit
e717246
1 Parent(s): 874b0d4

try to fix highlighting problem with hf spaces themes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def main():
121
  end_idx = start_idx + len(answer)
122
  # Hack due to this bug: https://github.com/streamlit/streamlit/issues/3190
123
  st.write(markdown("- ..."+context[:start_idx] +
124
- str(annotation(answer, "ANSWER", "#3e1c21")) +
125
  context[end_idx:]+"..."), unsafe_allow_html=True)
126
  source = ""
127
  name = unquote(result['meta']['name']).replace('_', ' ')
 
121
  end_idx = start_idx + len(answer)
122
  # Hack due to this bug: https://github.com/streamlit/streamlit/issues/3190
123
  st.write(markdown("- ..."+context[:start_idx] +
124
+ str(annotation(answer, "ANSWER", "#3e1c21", "white")) +
125
  context[end_idx:]+"..."), unsafe_allow_html=True)
126
  source = ""
127
  name = unquote(result['meta']['name']).replace('_', ' ')