Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import io
|
|
7 |
app = FastAPI()
|
8 |
|
9 |
# Load the YOLOv5 model for object detection
|
10 |
-
detector = pipeline('object-detection', model='
|
11 |
|
12 |
@app.post("/detect_objects/")
|
13 |
async def detect_objects(file: UploadFile = File(...)):
|
|
|
7 |
app = FastAPI()
|
8 |
|
9 |
# Load the YOLOv5 model for object detection
|
10 |
+
detector = pipeline('object-detection', model='Ultralytics/YOLOv8')
|
11 |
|
12 |
@app.post("/detect_objects/")
|
13 |
async def detect_objects(file: UploadFile = File(...)):
|