Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ from io import BytesIO
|
|
| 16 |
MODEL_ARCH = "animetimm/convnext_base.dbv4-full"
|
| 17 |
CLASSES = ["Good", "Normal", "Bad"] # Must match your training order
|
| 18 |
MODEL_PATH = "best_model.pth"
|
| 19 |
-
MODEL_URL = "https://huggingface.co/Shio-Koube/
|
| 20 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 21 |
|
| 22 |
# Cap the longest side to avoid wasting GPU compute
|
|
|
|
| 16 |
MODEL_ARCH = "animetimm/convnext_base.dbv4-full"
|
| 17 |
CLASSES = ["Good", "Normal", "Bad"] # Must match your training order
|
| 18 |
MODEL_PATH = "best_model.pth"
|
| 19 |
+
MODEL_URL = "https://huggingface.co/Shio-Koube/ConvNext-aesthetic-rater/resolve/main/best_model.pth"
|
| 20 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 21 |
|
| 22 |
# Cap the longest side to avoid wasting GPU compute
|