pierreguillou commited on
Commit
100803d
1 Parent(s): 429935b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,11 +1,12 @@
 
 
1
  # workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
2
  os.system('pip install torch==1.8.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
3
 
4
  # install detectron2 that matches pytorch 1.8
5
  # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
6
  os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
7
-
8
- import os
9
  import gradio as gr
10
  import re
11
  import string
 
1
+ import os
2
+
3
  # workaround: install old version of pytorch since detectron2 hasn't released packages for pytorch 1.9 (issue: https://github.com/facebookresearch/detectron2/issues/3158)
4
  os.system('pip install torch==1.8.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
5
 
6
  # install detectron2 that matches pytorch 1.8
7
  # See https://detectron2.readthedocs.io/tutorials/install.html for instructions
8
  os.system('pip install -q detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html')
9
+
 
10
  import gradio as gr
11
  import re
12
  import string