Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,17 +30,17 @@ 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
|
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 =
|
41 |
guidance_scale = guidance_scale,
|
42 |
-
width =
|
43 |
-
height =
|
44 |
|
45 |
return result.images[0]
|
46 |
|
@@ -51,7 +51,7 @@ margin: 0 auto;
|
|
51 |
}
|
52 |
'''
|
53 |
|
54 |
-
normal_examples = ["1girl, face, brown bob short hair, brown eyes, looking at viewer"]
|
55 |
with gr.Blocks(css=css) as demo:
|
56 |
gr.Markdown('''# Emi 2
|
57 |
Official demo for Emi 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,
|
43 |
+
height = 1344)
|
44 |
|
45 |
return result.images[0]
|
46 |
|
|
|
51 |
}
|
52 |
'''
|
53 |
|
54 |
+
normal_examples = ["1girl, face, brown bob short hair, brown eyes, looking at viewer, white background, simple background","1girl, full body, brown bob short hair, brown eyes, school uniform, white background, simple background"]
|
55 |
with gr.Blocks(css=css) as demo:
|
56 |
gr.Markdown('''# Emi 2
|
57 |
Official demo for Emi 2
|