Dricz commited on
Commit
9ce1868
1 Parent(s): e559f1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -5,9 +5,9 @@ from ultralyticsplus import YOLO, render_result
5
  import cv2
6
  import numpy as np
7
 
8
-
9
  model = YOLO('best (1).pt')
10
 
 
11
  def response(image):
12
  print(image)
13
  results = model(image)
@@ -56,18 +56,18 @@ outputs = gr.Image(type="filepath", label="Output Image")
56
  title = "YOLOv8 Custom Object Detection by Uyen Nguyen"
57
 
58
 
59
- examples = [['one.jpg', 900, 0.5, 0.8],
60
- ['two.jpg', 1152, 0.05, 0.05],
61
- ['three.jpg', 1024, 0.25, 0.25],
62
- ['four.jpg', 832, 0.3, 0.3]]
63
 
64
  yolo_app = gr.Interface(
65
  fn=yoloV8_func,
66
  inputs=inputs,
67
  outputs=outputs,
68
  title=title,
69
- examples=examples,
70
- cache_examples=True,
71
  )
72
 
73
  # Launch the Gradio interface in debug mode with queue enabled
 
5
  import cv2
6
  import numpy as np
7
 
 
8
  model = YOLO('best (1).pt')
9
 
10
+
11
  def response(image):
12
  print(image)
13
  results = model(image)
 
56
  title = "YOLOv8 Custom Object Detection by Uyen Nguyen"
57
 
58
 
59
+ # examples = [['one.jpg', 900, 0.5, 0.8],
60
+ # ['two.jpg', 1152, 0.05, 0.05],
61
+ # ['three.jpg', 1024, 0.25, 0.25],
62
+ # ['four.jpg', 832, 0.3, 0.3]]
63
 
64
  yolo_app = gr.Interface(
65
  fn=yoloV8_func,
66
  inputs=inputs,
67
  outputs=outputs,
68
  title=title,
69
+ # examples=examples,
70
+ # cache_examples=True,
71
  )
72
 
73
  # Launch the Gradio interface in debug mode with queue enabled