Yjiggfghhjnjj commited on
Commit
c86e543
·
verified ·
1 Parent(s): 01cb3ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -165,26 +165,26 @@ with gr.Blocks() as demo:
165
  gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
166
  image_outputs = [image_r3, image_r4]
167
  gr.on(
168
- triggers=[
169
- prompt.submit,
170
- negative_prompt.submit,
171
- run_button.click,
172
- ],
173
- fn=run_comparison,
174
- inputs=[
175
- prompt,
176
- negative_prompt,
177
- use_negative_prompt,
178
- num_inference_steps,
179
- num_images_per_prompt,
180
- seed,
181
- width,
182
- height,
183
- guidance_scale,
184
- randomize_seed,
185
- ],
186
- outputs=[image_outputs, seed],
187
- api_name="run",
188
  )
189
  use_negative_prompt.change(
190
  fn=lambda x: gr.update(visible=x),
 
165
  gr.Markdown("## [RealVisXL V3](https://huggingface.co)")
166
  image_outputs = [image_r3, image_r4]
167
  gr.on(
168
+ triggers=[
169
+ prompt.submit,
170
+ negative_prompt.submit,
171
+ run_button.click,
172
+ ],
173
+ fn=run_comparison,
174
+ inputs=[
175
+ prompt,
176
+ negative_prompt,
177
+ use_negative_prompt,
178
+ num_inference_steps,
179
+ num_images_per_prompt,
180
+ seed,
181
+ width,
182
+ height,
183
+ guidance_scale,
184
+ randomize_seed,
185
+ ],
186
+ outputs=[image_r3, image_r4], # Use the correct outputs here
187
+ api_name="run",
188
  )
189
  use_negative_prompt.change(
190
  fn=lambda x: gr.update(visible=x),