Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,10 @@ def upscale_image(model, input_image):
|
|
30 |
return upscaled_image
|
31 |
|
32 |
# Define the Gradio interface
|
33 |
-
|
34 |
fn=upscale_image,
|
35 |
inputs=[gr.Radio(["SD 2.0 2x Latent Upscaler", "SD 2.1 4x Upscaler"], label="Models:"), gr.Image(type="filepath", label = "Raw Image")],
|
36 |
outputs=gr.Image(type="filepath", label = "Upscaled Image"),
|
37 |
title="SD Image Upscaler",
|
38 |
description="Upscale an image using either the SD 2.0 2x Latent Upscaler or the SD 2.1 4x Upscaler. Use the 4x Upscaler for images lower than 512x512. Use the 2x Upscaler for images 512x512 to 768x768"
|
39 |
-
)
|
40 |
-
|
41 |
-
# Launch the interface
|
42 |
-
iface.launch(debug=True)
|
|
|
30 |
return upscaled_image
|
31 |
|
32 |
# Define the Gradio interface
|
33 |
+
gr.Interface(
|
34 |
fn=upscale_image,
|
35 |
inputs=[gr.Radio(["SD 2.0 2x Latent Upscaler", "SD 2.1 4x Upscaler"], label="Models:"), gr.Image(type="filepath", label = "Raw Image")],
|
36 |
outputs=gr.Image(type="filepath", label = "Upscaled Image"),
|
37 |
title="SD Image Upscaler",
|
38 |
description="Upscale an image using either the SD 2.0 2x Latent Upscaler or the SD 2.1 4x Upscaler. Use the 4x Upscaler for images lower than 512x512. Use the 2x Upscaler for images 512x512 to 768x768"
|
39 |
+
).launch(debug=True)
|
|
|
|
|
|