Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Commit
•
1622413
1
Parent(s):
09e0c14
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,13 @@ compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
|
|
30 |
|
31 |
@spaces.GPU
|
32 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
33 |
-
conditioning, pooled = compel(
|
34 |
-
|
35 |
result = pipe_normal(
|
36 |
-
prompt_embeds=conditioning
|
37 |
-
pooled_prompt_embeds=pooled
|
38 |
-
negative_prompt_embeds=
|
39 |
-
negative_pooled_prompt_embeds=
|
40 |
num_inference_steps = 25,
|
41 |
guidance_scale = guidance_scale,
|
42 |
width = 768,
|
|
|
30 |
|
31 |
@spaces.GPU
|
32 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
33 |
+
conditioning, pooled = compel(prompt)
|
34 |
+
negative_conditioning, negatice_pooled = compel("(unaestheticXLv31)++, "+negative_prompt)
|
35 |
result = pipe_normal(
|
36 |
+
prompt_embeds=conditioning,
|
37 |
+
pooled_prompt_embeds=pooled,
|
38 |
+
negative_prompt_embeds=negative_conditioning,
|
39 |
+
negative_pooled_prompt_embeds=negatice_pooled,
|
40 |
num_inference_steps = 25,
|
41 |
guidance_scale = guidance_scale,
|
42 |
width = 768,
|