alfredplpl commited on
Commit
1622413
1 Parent(s): 09e0c14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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([prompt, "(unaestheticXLv31)++++, "+negative_prompt])
34
-
35
  result = pipe_normal(
36
- prompt_embeds=conditioning[0:1],
37
- pooled_prompt_embeds=pooled[0:1],
38
- negative_prompt_embeds=conditioning[1:2],
39
- negative_pooled_prompt_embeds=pooled[1:2],
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,