Spaces:
Runtime error
Runtime error
chg: Move header out of sidebar
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def render_entities(doc, colors: dict, options: dict) -> str:
|
|
27 |
return html
|
28 |
|
29 |
|
30 |
-
st.
|
31 |
st.sidebar.markdown(
|
32 |
"""
|
33 |
This example application accompanies the blog post: [Extracting useful information from documents with Named Entity Recognition]().
|
@@ -56,7 +56,7 @@ if st.button("Show Wellcome example", key="text"):
|
|
56 |
help="Enter your own text and press CTRL + ENTER to search for entities",
|
57 |
)
|
58 |
doc = nlp(text)
|
59 |
-
show_example(
|
60 |
else:
|
61 |
text = st.text_area(
|
62 |
"Add your own text or click the button to see a Wellcome example",
|
@@ -65,7 +65,7 @@ else:
|
|
65 |
help="Enter your own text and press CTRL + ENTER to search for entities",
|
66 |
)
|
67 |
doc = nlp(text)
|
68 |
-
show_example(
|
69 |
|
70 |
st.markdown(
|
71 |
"Examples from The Wellcome Trust are taken from data that are publishes openly at [360 Giving](https://data.threesixtygiving.org/). They are published under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|
|
|
27 |
return html
|
28 |
|
29 |
|
30 |
+
st.header("Location Recognition Demo πππ")
|
31 |
st.sidebar.markdown(
|
32 |
"""
|
33 |
This example application accompanies the blog post: [Extracting useful information from documents with Named Entity Recognition]().
|
|
|
56 |
help="Enter your own text and press CTRL + ENTER to search for entities",
|
57 |
)
|
58 |
doc = nlp(text)
|
59 |
+
show_example(text)
|
60 |
else:
|
61 |
text = st.text_area(
|
62 |
"Add your own text or click the button to see a Wellcome example",
|
|
|
65 |
help="Enter your own text and press CTRL + ENTER to search for entities",
|
66 |
)
|
67 |
doc = nlp(text)
|
68 |
+
show_example(text)
|
69 |
|
70 |
st.markdown(
|
71 |
"Examples from The Wellcome Trust are taken from data that are publishes openly at [360 Giving](https://data.threesixtygiving.org/). They are published under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license."
|