Spaces:
Running
on
Zero
Running
on
Zero
Walmart-the-bag
commited on
Commit
•
cc51d2f
1
Parent(s):
28025a0
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, progress=gr.Progress(track_tqdm=True)):
|
13 |
if add_4k_masterpiece:
|
14 |
prompt += ", 4k, (masterpiece)"
|
15 |
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=guidance_scale).images[0]
|
|
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
@spaces.GPU()
|
12 |
+
def text_to_image(prompt, negative_prompt, steps, guidance_scale, add_4k_masterpiece, progress=gr.Progress(track_tqdm=True)):
|
13 |
if add_4k_masterpiece:
|
14 |
prompt += ", 4k, (masterpiece)"
|
15 |
image = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=steps, guidance_scale=guidance_scale).images[0]
|