Spaces:
Runtime error
Runtime error
Commit ·
170f4f4
1
Parent(s): a83d16c
Fix model path in main.py
Browse files- app/main.py +1 -1
- app/{best.onnx → model.onnx} +0 -0
- app/{best.pt → model.pt} +0 -0
app/main.py
CHANGED
|
@@ -5,7 +5,7 @@ from PIL import Image
|
|
| 5 |
import io
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
-
model = YOLO("
|
| 9 |
|
| 10 |
@app.get("/")
|
| 11 |
def read_root():
|
|
|
|
| 5 |
import io
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
+
model = YOLO("model.pt") # Load the trained YOLOv11/12 model
|
| 9 |
|
| 10 |
@app.get("/")
|
| 11 |
def read_root():
|
app/{best.onnx → model.onnx}
RENAMED
|
File without changes
|
app/{best.pt → model.pt}
RENAMED
|
File without changes
|