Samanta Das commited on
Commit
4e3b63a
·
verified ·
1 Parent(s): a06959b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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."""