Spaces:
Running
on
Zero
Running
on
Zero
format
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def realesrgan(img, model_name, denoise_strength, face_enhance, outscale):
|
|
100 |
else:
|
101 |
# Save restored image and return it to the output Image component
|
102 |
if img_mode == 'RGBA': # RGBA images should be saved in png format
|
103 |
-
extension = '
|
104 |
else:
|
105 |
extension = 'jpg'
|
106 |
|
|
|
100 |
else:
|
101 |
# Save restored image and return it to the output Image component
|
102 |
if img_mode == 'RGBA': # RGBA images should be saved in png format
|
103 |
+
extension = 'png'
|
104 |
else:
|
105 |
extension = 'jpg'
|
106 |
|