jackboyla commited on
Commit
165275b
1 Parent(s): 1818a6a

Forces installs

Browse files
Files changed (1) hide show
  1. app.py +10 -18
app.py CHANGED
@@ -1,22 +1,14 @@
1
  import subprocess
2
- try:
3
- import gradio as gr
4
- import spacy
5
- import glirel
6
- except:
7
- subprocess.run(["pip", "install", "gradio==4.31.5"])
8
- subprocess.run(["pip", "install", "spacy"])
9
- subprocess.run(["pip", "install", "glirel"])
10
- subprocess.run(["pip", "install", "scipy==1.10.1"])
11
- subprocess.run(["pip", "install", "numpy==1.26.4"])
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