Spaces:
Runtime error
Runtime error
alfredplpl
commited on
Commit
β’
ce9b008
1
Parent(s):
2dfa028
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,10 @@ compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
|
|
32 |
|
33 |
@spaces.GPU
|
34 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
35 |
-
|
|
|
|
|
|
|
36 |
negative_conditioning, negatice_pooled = compel("unaestheticXLv31, bad hand, bad anatomy, low quality, 3d, photo, realism, "+negative_prompt)
|
37 |
result = pipe_normal(
|
38 |
prompt_embeds=conditioning,
|
|
|
32 |
|
33 |
@spaces.GPU
|
34 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
35 |
+
if(prompt=="1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom"):
|
36 |
+
conditioning, pooled = compel("")
|
37 |
+
else:
|
38 |
+
conditioning, pooled = compel(prompt)
|
39 |
negative_conditioning, negatice_pooled = compel("unaestheticXLv31, bad hand, bad anatomy, low quality, 3d, photo, realism, "+negative_prompt)
|
40 |
result = pipe_normal(
|
41 |
prompt_embeds=conditioning,
|