Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ nltk.download('omw-1.4')
|
|
22 |
try:
|
23 |
nlp = spacy.load("en_core_web_sm")
|
24 |
except OSError:
|
25 |
-
subprocess.run(["python", "-m",
|
26 |
nlp = spacy.load("en_core_web_sm")
|
27 |
|
28 |
# Function to predict the label and score for English text (AI Detection)
|
|
|
22 |
try:
|
23 |
nlp = spacy.load("en_core_web_sm")
|
24 |
except OSError:
|
25 |
+
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
|
26 |
nlp = spacy.load("en_core_web_sm")
|
27 |
|
28 |
# Function to predict the label and score for English text (AI Detection)
|