Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|