Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4",
|
|
7 |
pipe.unet.load_attn_procs(model_path)
|
8 |
|
9 |
def generate_poster(prompt):
|
10 |
-
|
|
|
11 |
return image
|
12 |
|
13 |
interface = gr.Interface(fn=generate_poster, inputs="text", outputs="image", title="Poster Generator")
|
|
|
7 |
pipe.unet.load_attn_procs(model_path)
|
8 |
|
9 |
def generate_poster(prompt):
|
10 |
+
print("start generating image", prompt)
|
11 |
+
image = pipe(prompt, num_inference_steps=10, guidance_scale=50).images[0]
|
12 |
return image
|
13 |
|
14 |
interface = gr.Interface(fn=generate_poster, inputs="text", outputs="image", title="Poster Generator")
|