Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ model = YOLO('best.pt')
|
|
| 7 |
|
| 8 |
def detect_ingredients(image):
|
| 9 |
# 2. Run prediction
|
| 10 |
-
results = model.predict(image, conf=0.
|
| 11 |
|
| 12 |
# 3. Get the image with boxes
|
| 13 |
result_image = results[0].plot()
|
|
|
|
| 7 |
|
| 8 |
def detect_ingredients(image):
|
| 9 |
# 2. Run prediction
|
| 10 |
+
results = model.predict(image, conf=0.7, iou=0.3)
|
| 11 |
|
| 12 |
# 3. Get the image with boxes
|
| 13 |
result_image = results[0].plot()
|