Update app.py
Browse files
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 |
-
|
9 |
-
|
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
|