Spaces:
Runtime error
Runtime error
lkeab
commited on
Commit
•
749f060
1
Parent(s):
30204ee
update app
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ predictor = DefaultPredictor(cfg)
|
|
46 |
|
47 |
|
48 |
def inference(image):
|
49 |
-
img = np.array(image
|
50 |
outputs = predictor(img)
|
51 |
|
52 |
v = Visualizer(img, MetadataCatalog.get(cfg.DATASETS.TRAIN[0]), scale=1.2)
|
|
|
46 |
|
47 |
|
48 |
def inference(image):
|
49 |
+
img = np.array(image)
|
50 |
outputs = predictor(img)
|
51 |
|
52 |
v = Visualizer(img, MetadataCatalog.get(cfg.DATASETS.TRAIN[0]), scale=1.2)
|