akhaliq HF staff commited on
Commit
551e0bc
1 Parent(s): 86a45f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import os
 
2
 
3
  os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
4
  os.system("git clone https://github.com/AK391/Mask2Former.git")
5
 
6
- os.chdir("Mask2Former")
7
  os.system("pip install git+https://github.com/cocodataset/panopticapi.git")
8
 
9
  import gradio as gr
 
1
  import os
2
+ import sys
3
 
4
  os.system('pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html')
5
  os.system("git clone https://github.com/AK391/Mask2Former.git")
6
 
7
+ sys.append.path("Mask2Former")
8
  os.system("pip install git+https://github.com/cocodataset/panopticapi.git")
9
 
10
  import gradio as gr