Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -344,9 +344,9 @@ def process_image_with_tools(image_path, models, original_size):
|
|
| 344 |
os.makedirs('temp_outputs', exist_ok=True)
|
| 345 |
|
| 346 |
# Process the image with selected models
|
| 347 |
-
|
| 348 |
res = tool_engine.process_image(models, image_path, 'temp_outputs')
|
| 349 |
-
|
| 350 |
# Resize back to original dimensions
|
| 351 |
final_result = resize_image_to_original(res['output_path'], original_size)
|
| 352 |
|
|
|
|
| 344 |
os.makedirs('temp_outputs', exist_ok=True)
|
| 345 |
|
| 346 |
# Process the image with selected models
|
| 347 |
+
print("---------using tools---------")
|
| 348 |
res = tool_engine.process_image(models, image_path, 'temp_outputs')
|
| 349 |
+
print("---------resizing back---------")
|
| 350 |
# Resize back to original dimensions
|
| 351 |
final_result = resize_image_to_original(res['output_path'], original_size)
|
| 352 |
|