Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ from pathlib import Path
|
|
5 |
import cv2
|
6 |
import gradio as gr
|
7 |
import torch
|
8 |
-
|
|
|
9 |
|
10 |
-
pipeline = predict()
|
11 |
|
12 |
def fn_image(image):
|
13 |
-
return
|
14 |
|
15 |
gr.Interface(
|
16 |
fn_image,
|
|
|
5 |
import cv2
|
6 |
import gradio as gr
|
7 |
import torch
|
8 |
+
from ultralytics.yolo.v8.detect.predict import predict
|
9 |
+
|
10 |
|
|
|
11 |
|
12 |
def fn_image(image):
|
13 |
+
return predict(model=yolov8x6, source=image)
|
14 |
|
15 |
gr.Interface(
|
16 |
fn_image,
|