KAHRAMAN42 commited on
Commit
dd1caf2
1 Parent(s): b7fc969

Update image_detection.py

Browse files
Files changed (1) hide show
  1. image_detection.py +2 -2
image_detection.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
 
5
  def fonk(img_path):
6
 
7
- model=YOLO("/home/kahraman/Masaüstü/HuggingFace_Models_and_Spaces/Cattle_Detection_with_YOLOV8/best.pt")
8
 
9
  img= cv2.imread(img_path, cv2.IMREAD_UNCHANGED)
10
 
@@ -20,7 +20,7 @@ def fonk(img_path):
20
  demo = gr.Interface(fonk,
21
  inputs= gr.Image(type="filepath"),
22
  outputs=gr.Image(),
23
- examples= "/home/kahraman/Masaüstü/HuggingFace_Models_and_Spaces/Cattle_Detection_with_YOLOV8/images.jpeg"
24
  )
25
  demo.launch()
26
 
 
4
 
5
  def fonk(img_path):
6
 
7
+ model=YOLO("best.pt")
8
 
9
  img= cv2.imread(img_path, cv2.IMREAD_UNCHANGED)
10
 
 
20
  demo = gr.Interface(fonk,
21
  inputs= gr.Image(type="filepath"),
22
  outputs=gr.Image(),
23
+ examples= "images.jpeg"
24
  )
25
  demo.launch()
26