Spaces:
Runtime error
Runtime error
neg_rem
Browse files
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,
|
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,
|
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()
|