mattupson commited on
Commit
053f2f3
Β·
unverified Β·
1 Parent(s): 169138c

chg: Move header out of sidebar

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,7 +27,7 @@ def render_entities(doc, colors: dict, options: dict) -> str:
27
  return html
28
 
29
 
30
- st.sidebar.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,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(doc.text)
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(doc.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."
 
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."