Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ app = FastAPI()
|
|
| 11 |
|
| 12 |
# Load model and processor once at startup
|
| 13 |
repo_name = "Jayanth2002/dinov2-base-finetuned-SkinDisease"
|
| 14 |
-
image_processor = AutoImageProcessor.from_pretrained(repo_name, use_fast=
|
| 15 |
model = AutoModelForImageClassification.from_pretrained(repo_name)
|
| 16 |
|
| 17 |
# Class names
|
|
|
|
| 11 |
|
| 12 |
# Load model and processor once at startup
|
| 13 |
repo_name = "Jayanth2002/dinov2-base-finetuned-SkinDisease"
|
| 14 |
+
image_processor = AutoImageProcessor.from_pretrained(repo_name, use_fast=True)
|
| 15 |
model = AutoModelForImageClassification.from_pretrained(repo_name)
|
| 16 |
|
| 17 |
# Class names
|