Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -33,7 +33,7 @@ class EndpointHandler():
|
|
33 |
self.model.overrides['max_det'] = config.get('max_det')
|
34 |
|
35 |
# Get label idx-to-name
|
36 |
-
names = model.model.names
|
37 |
|
38 |
# perform inference
|
39 |
result = self.model.predict(inputs['image'])[0]
|
|
|
33 |
self.model.overrides['max_det'] = config.get('max_det')
|
34 |
|
35 |
# Get label idx-to-name
|
36 |
+
names = self.model.model.names
|
37 |
|
38 |
# perform inference
|
39 |
result = self.model.predict(inputs['image'])[0]
|