Spaces:
Runtime error
Runtime error
small change to display
Browse files
pages/3_β_Extract_Demo.py
CHANGED
@@ -132,10 +132,12 @@ def add_rule_based_entites(doc):
|
|
132 |
|
133 |
if button:
|
134 |
col1, col2 = st.columns(2)
|
135 |
-
doc = nlp(text)
|
136 |
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
139 |
with col1:
|
140 |
st.header('π¨ Highlighted Text')
|
141 |
|
|
|
132 |
|
133 |
if button:
|
134 |
col1, col2 = st.columns(2)
|
|
|
135 |
|
136 |
+
with st.spinner('Extracting Data...'):
|
137 |
+
doc = nlp(text)
|
138 |
+
doc = add_rule_based_entites(doc)
|
139 |
+
doc = add_detected_persons_as_parties(doc)
|
140 |
+
|
141 |
with col1:
|
142 |
st.header('π¨ Highlighted Text')
|
143 |
|