Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -25,7 +25,7 @@ st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
|
| 25 |
st.markdown(':rainbow[**Supported Languages: English**]')
|
| 26 |
|
| 27 |
expander = st.expander("**Important notes**")
|
| 28 |
-
expander.write("""**Named Entities:** This DataHarvest web app predicts nine (9) labels: "person", "country", "city", "organization", "date", "time", "money", "percent
|
| 29 |
|
| 30 |
Results are presented in easy-to-read tables, visualized in an interactive tree map, pie chart and bar chart, and are available for download along with a Glossary of tags.
|
| 31 |
|
|
@@ -65,7 +65,7 @@ if not comet_initialized:
|
|
| 65 |
st.warning("Comet ML not initialized. Check environment variables.")
|
| 66 |
|
| 67 |
# --- Label Definitions ---
|
| 68 |
-
labels = ["person", "country", "city", "organization", "date", "time", "money", "
|
| 69 |
|
| 70 |
# Corrected mapping dictionary
|
| 71 |
|
|
@@ -74,7 +74,7 @@ category_mapping = {
|
|
| 74 |
"People": ["person", "organization", "position"],
|
| 75 |
"Locations": ["country", "city"],
|
| 76 |
"Time": ["date", "time"],
|
| 77 |
-
"Numbers": ["money", "
|
| 78 |
}
|
| 79 |
|
| 80 |
|
|
|
|
| 25 |
st.markdown(':rainbow[**Supported Languages: English**]')
|
| 26 |
|
| 27 |
expander = st.expander("**Important notes**")
|
| 28 |
+
expander.write("""**Named Entities:** This DataHarvest web app predicts nine (9) labels: "person", "country", "city", "organization", "date", "time", "money", "percent", "position"
|
| 29 |
|
| 30 |
Results are presented in easy-to-read tables, visualized in an interactive tree map, pie chart and bar chart, and are available for download along with a Glossary of tags.
|
| 31 |
|
|
|
|
| 65 |
st.warning("Comet ML not initialized. Check environment variables.")
|
| 66 |
|
| 67 |
# --- Label Definitions ---
|
| 68 |
+
labels = ["person", "country", "city", "organization", "date", "time", "money", "percent", "position"]
|
| 69 |
|
| 70 |
# Corrected mapping dictionary
|
| 71 |
|
|
|
|
| 74 |
"People": ["person", "organization", "position"],
|
| 75 |
"Locations": ["country", "city"],
|
| 76 |
"Time": ["date", "time"],
|
| 77 |
+
"Numbers": ["money", "percent"]
|
| 78 |
}
|
| 79 |
|
| 80 |
|