AIEcosystem commited on
Commit
2cfe6c8
·
verified ·
1 Parent(s): 65aae74

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -81,7 +81,8 @@ def highlight_entities(text, df_entities):
81
  # Change the foreground text color to BLACK, and use a white shadow for readability
82
  # Force text color to BLACK and add a clear, contrasting border
83
  # In the 'highlight_entities' function:
84
- highlight_html = f'<span style="background-color: {color}; color: #000000; padding: 2px 4px; border-radius: 3px; cursor: help; border: 1px solid #FFFFFF;" title="{label}">{entity_text}</span>'
 
85
 
86
  # Replace the original text segment with the highlighted HTML
87
  highlighted_text = highlighted_text[:start] + highlight_html + highlighted_text[end:]
 
81
  # Change the foreground text color to BLACK, and use a white shadow for readability
82
  # Force text color to BLACK and add a clear, contrasting border
83
  # In the 'highlight_entities' function:
84
+ highlight_html = f'<span style="background-color: {color}; color: #FF0000; padding: 2px 4px; border-radius: 3px; cursor: help; border: 1px solid #FFFFFF;" title="{label}">{entity_text}</span>'
85
+
86
 
87
  # Replace the original text segment with the highlighted HTML
88
  highlighted_text = highlighted_text[:start] + highlight_html + highlighted_text[end:]