amir22010 commited on
Commit
94ed444
·
1 Parent(s): 142f4c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ 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)
5
- os.system('pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html')
6
  # install detectron2 that matches pytorch 1.8
7
  os.system('pip install --upgrade detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html')
8
 
 
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)
5
+ os.system('pip install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html')
6
  # install detectron2 that matches pytorch 1.8
7
  os.system('pip install --upgrade detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html')
8