iarbel commited on
Commit
5007afa
1 Parent(s): 3a43c10

Update handler.py

Browse files
Files changed (1) hide show
  1. 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]