Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def generate_ner_html(text, entities):
|
|
70 |
st.set_page_config(layout="wide")
|
71 |
|
72 |
# UI ด้วย Streamlit
|
73 |
-
col1, col2 = st.columns([1, 1])
|
74 |
|
75 |
with col1:
|
76 |
st.header("Input")
|
@@ -113,10 +113,11 @@ with col2:
|
|
113 |
st.markdown("##### Named Entity Annotation (Tagging)")
|
114 |
ner_html = generate_ner_html(text, merged_entities)
|
115 |
st.markdown(ner_html, unsafe_allow_html=True)
|
116 |
-
|
117 |
-
# แสดงข้อมูล Entity ในรูปแบบตาราง
|
118 |
-
st.markdown("### Extracted Entities")
|
119 |
-
st.table(merged_entities)
|
120 |
-
|
121 |
else:
|
122 |
st.write("No entities found.")
|
|
|
|
|
|
|
|
|
|
|
|
70 |
st.set_page_config(layout="wide")
|
71 |
|
72 |
# UI ด้วย Streamlit
|
73 |
+
col1, col2 = st.columns([1, 1, 1])
|
74 |
|
75 |
with col1:
|
76 |
st.header("Input")
|
|
|
113 |
st.markdown("##### Named Entity Annotation (Tagging)")
|
114 |
ner_html = generate_ner_html(text, merged_entities)
|
115 |
st.markdown(ner_html, unsafe_allow_html=True)
|
116 |
+
|
|
|
|
|
|
|
|
|
117 |
else:
|
118 |
st.write("No entities found.")
|
119 |
+
with col3:
|
120 |
+
# แสดงข้อมูล Entity ในรูปแบบตาราง
|
121 |
+
st.markdown("### Extracted Entities")
|
122 |
+
st.table(merged_entities)
|
123 |
+
|