Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -3
src/streamlit_app.py
CHANGED
@@ -77,7 +77,7 @@ st.set_page_config(layout="wide", page_title="Named Entity Recognition App")
|
|
77 |
st.subheader("StoryCraft", divider="blue")
|
78 |
st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
79 |
expander = st.expander("**Important notes**")
|
80 |
-
expander.write("""**Named Entities:** This HR.ai predicts eighteen (18) labels: "Person","Organization","Location","Date","Time","Quantity","Product","Event","Title","Job_title","Artwork","Media", "URL","Website","Hashtag","Email_address","IP_address","File_path"
|
81 |
|
82 |
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.
|
83 |
|
@@ -85,7 +85,7 @@ Results are presented in easy-to-read tables, visualized in an interactive tree
|
|
85 |
|
86 |
**Usage Limits:** You can request results unlimited times for one (1) month.
|
87 |
|
88 |
-
**Supported Languages:** English
|
89 |
|
90 |
**Technical issues:** If your connection times out, please refresh the page or reopen the app's URL.
|
91 |
|
@@ -223,10 +223,13 @@ if st.button("Results"):
|
|
223 |
)
|
224 |
st.plotly_chart(fig_pie)
|
225 |
|
|
|
|
|
|
|
226 |
with col2:
|
227 |
st.subheader("Bar chart", divider = "blue")
|
228 |
fig_bar = px.bar(grouped_counts, x="count", y="category", color="category", text_auto=True, title='Occurrences of predicted categories')
|
229 |
-
|
230 |
paper_bgcolor='#E0FFFF',
|
231 |
plot_bgcolor='#E0FFFF'
|
232 |
)
|
|
|
77 |
st.subheader("StoryCraft", divider="blue")
|
78 |
st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
79 |
expander = st.expander("**Important notes**")
|
80 |
+
expander.write("""**Named Entities:** This HR.ai predicts eighteen (18) labels: "Person", "Organization", "Location", "Date", "Time", "Quantity", "Product", "Event", "Title", "Job_title", "Artwork", "Media", "URL", "Website", "Hashtag", "Email_address", "IP_address", "File_path"
|
81 |
|
82 |
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.
|
83 |
|
|
|
85 |
|
86 |
**Usage Limits:** You can request results unlimited times for one (1) month.
|
87 |
|
88 |
+
**Supported Languages:** English, French, Italian, Portuguese, Spanish, German
|
89 |
|
90 |
**Technical issues:** If your connection times out, please refresh the page or reopen the app's URL.
|
91 |
|
|
|
223 |
)
|
224 |
st.plotly_chart(fig_pie)
|
225 |
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
with col2:
|
230 |
st.subheader("Bar chart", divider = "blue")
|
231 |
fig_bar = px.bar(grouped_counts, x="count", y="category", color="category", text_auto=True, title='Occurrences of predicted categories')
|
232 |
+
fig_bar.update_layout( # Changed from fig_pie to fig_bar
|
233 |
paper_bgcolor='#E0FFFF',
|
234 |
plot_bgcolor='#E0FFFF'
|
235 |
)
|