Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ predictor = DefaultPredictor(cfg)
|
|
32 |
|
33 |
|
34 |
def inference(img):
|
35 |
-
class_names = ['astro', 'cort', 'sh-sy5y']
|
36 |
im = np.asarray(Image.open(img).convert('RGB'))
|
37 |
outputs = predictor(im)
|
38 |
pred_classes = outputs['instances'].pred_classes.cpu().numpy().tolist()
|
|
|
32 |
|
33 |
|
34 |
def inference(img):
|
35 |
+
class_names = ['0','1','2'] #['astro', 'cort', 'sh-sy5y']
|
36 |
im = np.asarray(Image.open(img).convert('RGB'))
|
37 |
outputs = predictor(im)
|
38 |
pred_classes = outputs['instances'].pred_classes.cpu().numpy().tolist()
|