mlehn commited on
Commit
769d0b1
·
verified ·
1 Parent(s): a5bc88a

Update app.py

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