diyclassics commited on
Commit
87fe8ad
Β·
1 Parent(s): 615deca
Files changed (2) hide show
  1. app.py +3 -3
  2. pages/2_custom_label_demo.py +1 -1
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import streamlit as st
2
 
3
  st.set_page_config(
4
- page_title="Hello",
5
- page_icon="πŸ‘‹",
6
  )
7
 
8
  st.write("# LatinCy Dashboard")
@@ -15,7 +15,7 @@ st.markdown(
15
 
16
  ### See the demos
17
  - [Get basic spaCy data from a short text](parsing_demo)
18
- - [Visualize a custom span label](custom_label_demo), here tokens covered by the [DCC Core Latin Vocabulary](https://dcc.dickinson.edu/latin-core-list1
19
  """
20
  )
21
 
 
1
  import streamlit as st
2
 
3
  st.set_page_config(
4
+ page_title="LatinCy Dashboard | Home",
5
+ page_icon="🏠",
6
  )
7
 
8
  st.write("# LatinCy Dashboard")
 
15
 
16
  ### See the demos
17
  - [Get basic spaCy data from a short text](parsing_demo)
18
+ - [Visualize a custom span label](custom_label_demo), here tokens covered by the [DCC Core Latin Vocabulary](https://dcc.dickinson.edu/latin-core-list1)
19
  """
20
  )
21
 
pages/2_custom_label_demo.py CHANGED
@@ -35,7 +35,7 @@ class DCCCoreMerger:
35
  doc.spans["dcc_core"].append(Span(doc, start, end, "CORE"))
36
  for span in spans:
37
  for token in span:
38
- token._.is_dcc_core = True # Mark token as bad HTML
39
  return doc
40
 
41
  st.title("LatinCy DCC Core Visualizer")
 
35
  doc.spans["dcc_core"].append(Span(doc, start, end, "CORE"))
36
  for span in spans:
37
  for token in span:
38
+ token._.is_dcc_core = True
39
  return doc
40
 
41
  st.title("LatinCy DCC Core Visualizer")