Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,13 @@
|
|
1 |
try:
|
2 |
import cloudinary
|
3 |
-
import detectron2
|
4 |
except:
|
5 |
import os
|
6 |
os.system('pip install cloudinary')
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
import cv2
|
9 |
import json
|
|
|
1 |
try:
|
2 |
import cloudinary
|
|
|
3 |
except:
|
4 |
import os
|
5 |
os.system('pip install cloudinary')
|
6 |
+
try:
|
7 |
+
import detectron2
|
8 |
+
except:
|
9 |
+
import os
|
10 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
11 |
|
12 |
import cv2
|
13 |
import json
|