Manjushri commited on
Commit
8194643
·
1 Parent(s): d5b5eda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,9 +23,9 @@ def upscale_image(model, input_image):
23
 
24
  # Upscale the image using the selected model
25
  if model == "SD 2.0 2x Latent Upscaler":
26
- upscaled_image = sd_2_0_2x(prompt="", image=input_image)
27
  else:
28
- upscaled_image = sd_2_1_4x(prompt="", image=input_image)
29
 
30
  # Convert the upscaled tensor back to a PIL image
31
 
 
23
 
24
  # Upscale the image using the selected model
25
  if model == "SD 2.0 2x Latent Upscaler":
26
+ upscaled_image = sd_2_0_2x(prompt="", image=input_image, num_inference_steps=5).images[0]
27
  else:
28
+ upscaled_image = sd_2_1_4x(prompt="", image=input_image, num_inference_steps=5).images[0]
29
 
30
  # Convert the upscaled tensor back to a PIL image
31