ammariii08 commited on
Commit
573843e
·
verified ·
1 Parent(s): 5edc534

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -17,6 +17,7 @@ OUTPUT_PATH = "./outputs/pred_image.jpg"
17
  TEMP_PNG_PATH = "./outputs/pred_image.png"
18
 
19
  def run_inference(image):
 
20
  result = get_sliced_prediction(
21
  image,
22
  detection_model,
 
17
  TEMP_PNG_PATH = "./outputs/pred_image.png"
18
 
19
  def run_inference(image):
20
+ Path("./outputs").mkdir(parents=True, exist_ok=True) # Ensure output directory exists
21
  result = get_sliced_prediction(
22
  image,
23
  detection_model,