recoilme commited on
Commit
11ff47f
·
1 Parent(s): a00a71d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ pipeline = DiffusionPipeline.from_pretrained("recoilme/ColorfulXL-Lightning",var
10
  pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config, timestep_spacing="trailing")
11
 
12
 
13
- def generate(prompt, negative_prompt, width, height, sample_steps):
14
  return pipeline(prompt=prompt, guidance_scale=0, negative_prompt="", width=width, height=height, num_inference_steps=sample_steps).images[0]
15
 
16
  with gr.Blocks() as interface:
@@ -38,7 +38,7 @@ with gr.Blocks() as interface:
38
  """
39
  gr.Markdown(about_text)
40
 
41
- generate_button.click(fn=generate, inputs=[prompt, negative_prompt, width, height, sampling_steps], outputs=[output])
42
 
43
  if __name__ == "__main__":
44
  interface.launch()
 
10
  pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config, timestep_spacing="trailing")
11
 
12
 
13
+ def generate(prompt, width, height, sample_steps):
14
  return pipeline(prompt=prompt, guidance_scale=0, negative_prompt="", width=width, height=height, num_inference_steps=sample_steps).images[0]
15
 
16
  with gr.Blocks() as interface:
 
38
  """
39
  gr.Markdown(about_text)
40
 
41
+ generate_button.click(fn=generate, inputs=[prompt, width, height, sampling_steps], outputs=[output])
42
 
43
  if __name__ == "__main__":
44
  interface.launch()