FALSHEIKHI commited on
Commit
7916e82
1 Parent(s): 4828dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import pandas as pd
3
  import numpy as np
 
1
+ import subprocess
2
+
3
+ # Upgrade pip, setuptools, and wheel
4
+ subprocess.run(["pip", "install", "-U", "pip", "setuptools", "wheel"])
5
+
6
+ # Upgrade spaCy
7
+ subprocess.run(["pip", "install", "-U", "spacy"])
8
+
9
+ # Download the spaCy language model
10
+ subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
11
+
12
  import gradio as gr
13
  import pandas as pd
14
  import numpy as np