jethrovic commited on
Commit
67b2f0d
·
1 Parent(s): 98dadb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -27,12 +27,4 @@ text = st.text_area("Enter your text here:", "I am an artist and I live in Dubli
27
  # Process text and highlight POS
28
  if text:
29
  pos_result = pos_tagger(text)
30
- highlighted_text = ""
31
- for word_info in pos_result:
32
- color = get_color(word_info["entity_group"])
33
- highlighted_text += f'<span style="color: {color};">{word_info["word"]}</span> '
34
-
35
- # Debug: Print the highlighted text to inspect the HTML
36
- print(highlighted_text)
37
-
38
- st.markdown(highlighted_text, unsafe_allow_html=True)
 
27
  # Process text and highlight POS
28
  if text:
29
  pos_result = pos_tagger(text)
30
+ st.markdown(pos_result)