Manjushri commited on
Commit
d8490c6
·
1 Parent(s): db78d1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -30,13 +30,10 @@ def upscale_image(model, input_image):
30
  return upscaled_image
31
 
32
  # Define the Gradio interface
33
- iface = 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
- )
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)