Spaces:
Running
on
Zero
Running
on
Zero
nroggendorff
commited on
Commit
•
ad2f502
1
Parent(s):
540be8a
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def generate(prompt, negative_prompt, width, height, sample_steps, lora_id):
|
|
15 |
except RepositoryNotFoundError:
|
16 |
raise ValueError(f"Recieved invalid FLUX LoRA.")
|
17 |
|
18 |
-
return pipeline(prompt=f"{prompt}\
|
19 |
|
20 |
with gr.Blocks() as interface:
|
21 |
with gr.Column():
|
|
|
15 |
except RepositoryNotFoundError:
|
16 |
raise ValueError(f"Recieved invalid FLUX LoRA.")
|
17 |
|
18 |
+
return pipeline(prompt=f"{prompt}\n(NOT {negative_prompt}:2)", width=width, height=height, num_inference_steps=sample_steps, generator=torch.Generator("cpu").manual_seed(random.randint(42, 69)), guidance_scale=7).images[0]
|
19 |
|
20 |
with gr.Blocks() as interface:
|
21 |
with gr.Column():
|