Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from PIL import Image, ImageDraw
|
|
| 10 |
|
| 11 |
# Use absolute paths instead of relative paths
|
| 12 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
-
MODEL_PATH = os.path.join(BASE_DIR, "models/deim-blood-cell-
|
| 14 |
CLASS_NAMES_PATH = os.path.join(BASE_DIR, "models/classes.txt")
|
| 15 |
|
| 16 |
def resize_with_aspect_ratio(image, size, interpolation=Image.BILINEAR):
|
|
|
|
| 10 |
|
| 11 |
# Use absolute paths instead of relative paths
|
| 12 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
+
MODEL_PATH = os.path.join(BASE_DIR, "models/deim-blood-cell-detection_small.onnx")
|
| 14 |
CLASS_NAMES_PATH = os.path.join(BASE_DIR, "models/classes.txt")
|
| 15 |
|
| 16 |
def resize_with_aspect_ratio(image, size, interpolation=Image.BILINEAR):
|