Forces installs
Browse files
app.py
CHANGED
@@ -1,22 +1,14 @@
|
|
1 |
import subprocess
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
try:
|
14 |
-
import spacy
|
15 |
-
spacy.load("en_core_web_sm")
|
16 |
-
except:
|
17 |
-
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
|
18 |
-
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_md"])
|
19 |
-
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_lg"])
|
20 |
|
21 |
|
22 |
|
|
|
1 |
import subprocess
|
2 |
+
|
3 |
+
subprocess.run(["pip", "install", "gradio==4.31.5"])
|
4 |
+
subprocess.run(["pip", "install", "spacy"])
|
5 |
+
subprocess.run(["pip", "install", "glirel"])
|
6 |
+
subprocess.run(["pip", "install", "scipy==1.10.1"])
|
7 |
+
subprocess.run(["pip", "install", "numpy==1.26.4"])
|
8 |
+
|
9 |
+
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
|
10 |
+
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_md"])
|
11 |
+
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_lg"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
|
14 |
|