Spaces:
Runtime error
Runtime error
Aguilar Elizondo commited on
Commit ·
c45f1e3
1
Parent(s): 0897497
Fix: use pipeline_manager.enhance() method correctly
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import os
|
|
| 12 |
# Add backend to path
|
| 13 |
sys.path.insert(0, str(Path(__file__).parent))
|
| 14 |
|
| 15 |
-
from backend.services.diffusion_pipeline import get_pipeline_manager
|
| 16 |
from backend.services.upscaler import upscale_image
|
| 17 |
from backend.services.postprocess import postprocess_image
|
| 18 |
|
|
@@ -54,9 +54,8 @@ def enhance_image_simple(
|
|
| 54 |
# Step 1: AI Enhancement
|
| 55 |
logger.info("Applying AI enhancement...")
|
| 56 |
try:
|
| 57 |
-
enhanced =
|
| 58 |
-
|
| 59 |
-
input_image,
|
| 60 |
prompt="professional architectural photography, highly detailed, 8k, photorealistic",
|
| 61 |
strength=strength,
|
| 62 |
guidance_scale=guidance_scale,
|
|
|
|
| 12 |
# Add backend to path
|
| 13 |
sys.path.insert(0, str(Path(__file__).parent))
|
| 14 |
|
| 15 |
+
from backend.services.diffusion_pipeline import get_pipeline_manager
|
| 16 |
from backend.services.upscaler import upscale_image
|
| 17 |
from backend.services.postprocess import postprocess_image
|
| 18 |
|
|
|
|
| 54 |
# Step 1: AI Enhancement
|
| 55 |
logger.info("Applying AI enhancement...")
|
| 56 |
try:
|
| 57 |
+
enhanced = pipeline_manager.enhance(
|
| 58 |
+
image=input_image,
|
|
|
|
| 59 |
prompt="professional architectural photography, highly detailed, 8k, photorealistic",
|
| 60 |
strength=strength,
|
| 61 |
guidance_scale=guidance_scale,
|