Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|