Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,4 @@
|
|
| 1 |
import os
|
| 2 |
-
os.system('id user')
|
| 3 |
-
os.system('wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz')
|
| 4 |
-
os.system('tar -xzf Python-3.9.7.tgz')
|
| 5 |
-
os.chdir('Python-3.9.7')
|
| 6 |
-
os.system('pwd')
|
| 7 |
-
os.system('sudo ./configure --enable-optimizations')
|
| 8 |
-
os.system('sudo make -j 2')
|
| 9 |
-
os.system('nproc')
|
| 10 |
-
os.system('sudo make altinstall')
|
| 11 |
-
os.system('python3.9 --version')
|
| 12 |
-
os.system('cat /etc/os-release')
|
| 13 |
-
os.system('python -m pip install --upgrade pip')
|
| 14 |
-
|
| 15 |
-
os.system('python3.9 --version')
|
| 16 |
-
os.system('cat /etc/os-release')
|
| 17 |
-
os.system('python -m pip install --upgrade pip')
|
| 18 |
os.system('pip install transformers==4.25.1')
|
| 19 |
os.system('pip install sentencepiece')
|
| 20 |
# workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
|
|
|
|
| 1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
os.system('pip install transformers==4.25.1')
|
| 3 |
os.system('pip install sentencepiece')
|
| 4 |
# workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
|