avanish07 commited on
Commit
bdfd745
1 Parent(s): 20087e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def show_preds_image(image):
19
  results = outputs[0].boxes.xyxy.cpu().numpy()
20
  for det in results:
21
  x1, y1, x2, y2 = det[:4]
22
- label = "Pothole"
23
  cv2.rectangle(
24
  image,
25
  (int(x1), int(y1)),
@@ -51,7 +51,7 @@ interface_image = gr.Interface(
51
  fn=show_preds_image,
52
  inputs=inputs_image,
53
  outputs=outputs_image,
54
- title="Pothole detector",
55
  examples=[],
56
  cache_examples=False,
57
  )
 
19
  results = outputs[0].boxes.xyxy.cpu().numpy()
20
  for det in results:
21
  x1, y1, x2, y2 = det[:4]
22
+ label = ""
23
  cv2.rectangle(
24
  image,
25
  (int(x1), int(y1)),
 
51
  fn=show_preds_image,
52
  inputs=inputs_image,
53
  outputs=outputs_image,
54
+ title="Animal detector",
55
  examples=[],
56
  cache_examples=False,
57
  )