Spaces:
Runtime error
Runtime error
Walmart-the-bag
commited on
Commit
β’
870d80e
1
Parent(s):
3eb0af5
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ pipe = StableDiffusionXLPipeline.from_pretrained(model_id, torch_dtype=torch.flo
|
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
@spaces.GPU()
|
12 |
-
def text_to_image(prompt, negative_prompt, steps, guidance_scale):
|
13 |
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=guidance_scale).images[0]
|
14 |
return image
|
15 |
|
|
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
@spaces.GPU()
|
12 |
+
def text_to_image(prompt, negative_prompt, steps, guidance_scale, progress=gr.Progress(track_tqdm=True)):
|
13 |
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=guidance_scale).images[0]
|
14 |
return image
|
15 |
|