Spaces:
Running
Running
Initial commit
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ import re
|
|
9 |
import json
|
10 |
import requests
|
11 |
import spacy
|
12 |
-
import en_core_web_sm
|
13 |
import errant
|
14 |
import time
|
15 |
import os
|
@@ -187,8 +186,9 @@ if __name__ == "__main__":
|
|
187 |
if not st.session_state['models_loaded']:
|
188 |
load_models()
|
189 |
|
|
|
190 |
load_spacy()
|
191 |
-
nlp =
|
192 |
annotator = errant.load('en', nlp)
|
193 |
|
194 |
input_text = st.selectbox(
|
|
|
9 |
import json
|
10 |
import requests
|
11 |
import spacy
|
|
|
12 |
import errant
|
13 |
import time
|
14 |
import os
|
|
|
186 |
if not st.session_state['models_loaded']:
|
187 |
load_models()
|
188 |
|
189 |
+
os.system("pip show spacy")
|
190 |
load_spacy()
|
191 |
+
nlp = spacy.load('en_core_web_sm')
|
192 |
annotator = errant.load('en', nlp)
|
193 |
|
194 |
input_text = st.selectbox(
|