mlehn commited on
Commit
9e3bb7f
·
verified ·
1 Parent(s): 9df87a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,12 +1,14 @@
1
  try:
2
  import detectron2
3
  except:
 
4
  import os
5
- os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
6
- os.system('cd /home/user/app/GLEE/glee/models/pixel_decoder/ops && python setup.py build install --user')
7
  #os.system("pip uninstall -y gradio")
8
  #os.system("pip install gradio==4.11.0")
9
- #os.system('python -m pip install -e detectron2')
 
10
 
11
  import gradio as gr
12
  import numpy as np
 
1
  try:
2
  import detectron2
3
  except:
4
+ print("failed to import detectron2")
5
  import os
6
+ #os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
7
+ #os.system('cd /home/user/app/GLEE/glee/models/pixel_decoder/ops && python setup.py build install --user')
8
  #os.system("pip uninstall -y gradio")
9
  #os.system("pip install gradio==4.11.0")
10
+ os.system('python -m pip install -e detectron2')
11
+ import detectron2
12
 
13
  import gradio as gr
14
  import numpy as np