Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ last_file = None
|
|
14 |
img_mode = "RGBA"
|
15 |
|
16 |
|
17 |
-
def
|
18 |
"""Real-ESRGAN function to restore (and upscale) images.
|
19 |
"""
|
20 |
if not img:
|
@@ -205,7 +205,7 @@ with gr.Blocks(title="Real-ESRGAN Gradio Demo", theme="dark") as demo:
|
|
205 |
|
206 |
# Event listeners:
|
207 |
#input_image.change(fn=image_properties, inputs=input_image, outputs=input_image_properties)
|
208 |
-
restore_btn.click(fn=
|
209 |
inputs=[input_image, model_name, denoise_strength, face_enhance, outscale],
|
210 |
outputs=output_image)
|
211 |
reset_btn.click(fn=reset, inputs=[], outputs=[output_image, input_image])
|
|
|
14 |
img_mode = "RGBA"
|
15 |
|
16 |
|
17 |
+
def realesrgan1(img, model_name, denoise_strength, face_enhance, outscale):
|
18 |
"""Real-ESRGAN function to restore (and upscale) images.
|
19 |
"""
|
20 |
if not img:
|
|
|
205 |
|
206 |
# Event listeners:
|
207 |
#input_image.change(fn=image_properties, inputs=input_image, outputs=input_image_properties)
|
208 |
+
restore_btn.click(fn=realesrgan1,
|
209 |
inputs=[input_image, model_name, denoise_strength, face_enhance, outscale],
|
210 |
outputs=output_image)
|
211 |
reset_btn.click(fn=reset, inputs=[], outputs=[output_image, input_image])
|