Spaces:
Sleeping
Sleeping
KAHRAMAN42
commited on
Commit
•
dd1caf2
1
Parent(s):
b7fc969
Update image_detection.py
Browse files- 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("
|
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= "
|
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 |
|