Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
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)
|
|
|
1 |
import os
|
2 |
+
os.system('python -m pip install --upgrade pip')
|
3 |
os.system('pip install transformers==4.25.1')
|
4 |
os.system('pip install sentencepiece')
|
5 |
# workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
|