Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from PIL import Image, ImageDraw
|
2 |
import numpy as np
|
3 |
import requests
|
@@ -113,3 +119,4 @@ gr.Interface(
|
|
113 |
examples=[
|
114 |
["city1.jpg"],
|
115 |
]).launch()
|
|
|
|
1 |
+
try:
|
2 |
+
import detectron2
|
3 |
+
except:
|
4 |
+
import os
|
5 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
6 |
+
|
7 |
from PIL import Image, ImageDraw
|
8 |
import numpy as np
|
9 |
import requests
|
|
|
119 |
examples=[
|
120 |
["city1.jpg"],
|
121 |
]).launch()
|
122 |
+
|