Spaces:
Running
on
Zero
Running
on
Zero
Update src/app.py
Browse files- src/app.py +1 -8
src/app.py
CHANGED
|
@@ -136,14 +136,7 @@ def process(
|
|
| 136 |
solver_type=solver_type,
|
| 137 |
)
|
| 138 |
|
| 139 |
-
|
| 140 |
-
enhanced_image.save(output_path, format="PNG")
|
| 141 |
-
|
| 142 |
-
# Load the saved PNG image to ensure it is returned in PNG format
|
| 143 |
-
enhanced_image_png = Image.open(output_path)
|
| 144 |
-
|
| 145 |
-
return output_path, enhanced_image_png
|
| 146 |
-
#return enhanced_image
|
| 147 |
|
| 148 |
|
| 149 |
with gr.Blocks() as demo:
|
|
|
|
| 136 |
solver_type=solver_type,
|
| 137 |
)
|
| 138 |
|
| 139 |
+
return enhanced_image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
|
| 142 |
with gr.Blocks() as demo:
|