fffiloni commited on
Commit
360f0c6
1 Parent(s): 33ca1ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -124,7 +124,7 @@ def inference(input_image, prompt, a_prompt, n_prompt, denoise_steps, upscale, a
124
  # Convert and save the image as JPEG
125
  input_image.save('input.jpg', 'JPEG')
126
 
127
- return image, ("input.jpg", "result.jpg")
128
 
129
  title = "Pixel-Aware Stable Diffusion for Real-ISR"
130
  description = "Gradio Demo for PASD Real-ISR. To use it, simply upload your image, or click one of the examples to load them."
@@ -142,7 +142,7 @@ demo = gr.Interface(
142
  gr.Slider(label="Conditioning Scale", minimum=0.5, maximum=1.5, value=1.1, step=0.1),
143
  gr.Slider(label="Classier-free Guidance", minimum=0.1, maximum=10.0, value=7.5, step=0.1),
144
  gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)],
145
- outputs=[gr.Image(type="pil"), ImageSlider(position=0.5)],
146
  title=title,
147
  description=description,
148
  article=article).queue()
 
124
  # Convert and save the image as JPEG
125
  input_image.save('input.jpg', 'JPEG')
126
 
127
+ return ("input.jpg", "result.jpg"), "result.jpg"
128
 
129
  title = "Pixel-Aware Stable Diffusion for Real-ISR"
130
  description = "Gradio Demo for PASD Real-ISR. To use it, simply upload your image, or click one of the examples to load them."
 
142
  gr.Slider(label="Conditioning Scale", minimum=0.5, maximum=1.5, value=1.1, step=0.1),
143
  gr.Slider(label="Classier-free Guidance", minimum=0.1, maximum=10.0, value=7.5, step=0.1),
144
  gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)],
145
+ outputs=[ImageSlider(position=0.5), gr.File()],
146
  title=title,
147
  description=description,
148
  article=article).queue()