Spaces:
Sleeping
Sleeping
Samanta Das
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ OUTPUT_FOLDER = './output_images' # Use a relative path to avoid permission iss
|
|
19 |
# Ensure the output folder exists
|
20 |
os.makedirs(OUTPUT_FOLDER, exist_ok=True)
|
21 |
|
22 |
-
# Initialize the fracture detector
|
23 |
-
detector = FractureDetector(MODEL_PATH)
|
24 |
|
25 |
def delete_file_after_delay(file_path, delay):
|
26 |
"""Delete the specified file after a given delay."""
|
|
|
19 |
# Ensure the output folder exists
|
20 |
os.makedirs(OUTPUT_FOLDER, exist_ok=True)
|
21 |
|
22 |
+
# Initialize the fracture detector with both model path and output folder
|
23 |
+
detector = FractureDetector(MODEL_PATH, OUTPUT_FOLDER)
|
24 |
|
25 |
def delete_file_after_delay(file_path, delay):
|
26 |
"""Delete the specified file after a given delay."""
|