Yjiggfghhjnjj commited on
Commit
302a450
1 Parent(s): 26b5270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -77,15 +77,15 @@ del unet
77
  @spaces.GPU
78
  def run_comparison(prompt, progress=gr.Progress(track_tqdm=True)):
79
  image_turbo=pipe_turbo(prompt=prompt, num_inference_steps=1, guidance_scale=0).images[0]
80
- yield image_turbo, None, None
81
  image_lightning=pipe_lightning(prompt=prompt, num_inference_steps=1, guidance_scale=0).images[0]
82
- yield image_turbo, image_lightning, None
83
  image_hyper=pipe_hyper(prompt=prompt, num_inference_steps=1, guidance_scale=0, timesteps=[800]).images[0]
84
- yield image_turbo, image_lightning, image_hyper
85
- image_turbo=RealVisXLv3_pipe(prompt=prompt, num_inference_steps=8, guidance_scale=0).images[0]
86
- yield image_turbo, None, None
87
- image_lightning=RealVisXLv4_pipe(prompt=prompt, num_inference_steps=8, guidance_scale=0).images[0]
88
- yield image_turbo, image_lightning, None
89
 
90
  examples = ["A dignified beaver wearing glasses, a vest, and colorful neck tie.",
91
  "The spirit of a tamagotchi wandering in the city of Barcelona",
 
77
  @spaces.GPU
78
  def run_comparison(prompt, progress=gr.Progress(track_tqdm=True)):
79
  image_turbo=pipe_turbo(prompt=prompt, num_inference_steps=1, guidance_scale=0).images[0]
80
+ yield image_turbo, None, None, None, None
81
  image_lightning=pipe_lightning(prompt=prompt, num_inference_steps=1, guidance_scale=0).images[0]
82
+ yield image_turbo, image_lightning, None, None, None
83
  image_hyper=pipe_hyper(prompt=prompt, num_inference_steps=1, guidance_scale=0, timesteps=[800]).images[0]
84
+ yield image_turbo, image_lightning, image_hyper, None, None
85
+ image_r3=RealVisXLv3_pipe(prompt=prompt, num_inference_steps=8, guidance_scale=0).images[0]
86
+ yield image_turbo, image_lightning, image_hyper,image_r3, None
87
+ image_r4=RealVisXLv4_pipe(prompt=prompt, num_inference_steps=8, guidance_scale=0).images[0]
88
+ yield image_turbo, image_lightning, image_hyper,image_r3, image_r4
89
 
90
  examples = ["A dignified beaver wearing glasses, a vest, and colorful neck tie.",
91
  "The spirit of a tamagotchi wandering in the city of Barcelona",