Dricz commited on
Commit
9da0aa9
·
verified ·
1 Parent(s): bb013d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ def response2(image: gr.Image = None,image_size: gr.Slider = 640, conf_threshold
30
 
31
  render = render_result(model=model, image=image, result=results[0], rect_th = 1, text_th = 1)
32
 
33
- text = "success"
34
 
35
 
36
  conf = results.boxes.conf
@@ -39,7 +39,7 @@ def response2(image: gr.Image = None,image_size: gr.Slider = 640, conf_threshold
39
  x = xywh[0]
40
  y = xywh[1]
41
 
42
- text += (f"Detected {cls} with confidence {conf} at \n")
43
 
44
  return render,text
45
 
 
30
 
31
  render = render_result(model=model, image=image, result=results[0], rect_th = 1, text_th = 1)
32
 
33
+ text = " "
34
 
35
 
36
  conf = results.boxes.conf
 
39
  x = xywh[0]
40
  y = xywh[1]
41
 
42
+ text += f"Detected {cls} with confidence {conf} at \n"
43
 
44
  return render,text
45