Spaces:
Paused
Paused
vincentlu073
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,16 @@ except:
|
|
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
|
|
|
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 |
+
print(f"finished installing 1")
|
10 |
# os.system('python -m pip install -e detectron2')
|
11 |
+
|
12 |
+
try:
|
13 |
+
import detectron2
|
14 |
+
except Exception as e:
|
15 |
+
print(e)
|
16 |
+
import os
|
17 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
18 |
+
print(f"finished installing 2")
|
19 |
|
20 |
import gradio as gr
|
21 |
import numpy as np
|