panda1835 commited on
Commit
7f3f6f4
·
1 Parent(s): df338e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -18,21 +18,17 @@ def detect(image):
18
  width = int(results['xmax'] - results['xmin'])
19
  height = int(results['ymax'] - results['ymin'])
20
  return {
21
- 'bbox': {
22
  "top": top,
23
  "left": left,
24
  "width": width,
25
  "height": height
26
- }
27
  }
28
  except:
29
  return {
30
- 'bbox': {
31
  "top": 0,
32
  "left": 0,
33
  "width": 0,
34
  "height": 0
35
- }
36
  }
37
 
38
  title = "🐆"
 
18
  width = int(results['xmax'] - results['xmin'])
19
  height = int(results['ymax'] - results['ymin'])
20
  return {
 
21
  "top": top,
22
  "left": left,
23
  "width": width,
24
  "height": height
 
25
  }
26
  except:
27
  return {
 
28
  "top": 0,
29
  "left": 0,
30
  "width": 0,
31
  "height": 0
 
32
  }
33
 
34
  title = "🐆"