Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -117,6 +117,7 @@ def main(choose_context):
|
|
117 |
|
118 |
# Define function to predict topic for a given text document.
|
119 |
os.system("python -m spacy download en_core_web_sm")
|
|
|
120 |
nlp = spacy.load('en_core_web_sm', disable=['parser', 'ner'])
|
121 |
def predict_topic(text, nlp=nlp):
|
122 |
global sent_to_words
|
|
|
117 |
|
118 |
# Define function to predict topic for a given text document.
|
119 |
os.system("python -m spacy download en_core_web_sm")
|
120 |
+
print('en_core_web_sm downloaded')
|
121 |
nlp = spacy.load('en_core_web_sm', disable=['parser', 'ner'])
|
122 |
def predict_topic(text, nlp=nlp):
|
123 |
global sent_to_words
|