Spaces:
Sleeping
Sleeping
Uploading Trashify box detection model app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ model_save_path = "HimanshuGoyal2004/rt_detrv2_finetuned_trashify_box_detector_v
|
|
| 15 |
|
| 16 |
# Load the model and preprocessor
|
| 17 |
# Because this app.py file is running directly on Hugging Face Spaces, the model will be loaded from the Hugging Face Hub
|
| 18 |
-
image_processor = AutoImageProcessor.from_pretrained(model_save_path
|
| 19 |
model = AutoModelForObjectDetection.from_pretrained(model_save_path)
|
| 20 |
|
| 21 |
# Set the target device (use CUDA/GPU if it is available)
|
|
|
|
| 15 |
|
| 16 |
# Load the model and preprocessor
|
| 17 |
# Because this app.py file is running directly on Hugging Face Spaces, the model will be loaded from the Hugging Face Hub
|
| 18 |
+
image_processor = AutoImageProcessor.from_pretrained(model_save_path)
|
| 19 |
model = AutoModelForObjectDetection.from_pretrained(model_save_path)
|
| 20 |
|
| 21 |
# Set the target device (use CUDA/GPU if it is available)
|