Spaces:
Runtime error
Runtime error
alfredplpl
commited on
Commit
β’
056fb20
1
Parent(s):
c9a9082
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ compel = Compel(tokenizer=[pipe_normal.tokenizer, pipe_normal.tokenizer_2] ,
|
|
33 |
@spaces.GPU
|
34 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
35 |
conditioning, pooled = compel(prompt)
|
36 |
-
negative_conditioning, negatice_pooled = compel("
|
37 |
result = pipe_normal(
|
38 |
prompt_embeds=conditioning,
|
39 |
pooled_prompt_embeds=pooled,
|
@@ -56,11 +56,12 @@ margin: 0 auto;
|
|
56 |
normal_examples = [
|
57 |
"1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom",
|
58 |
"1girl, (full body)++, brown bob short hair, brown eyes, school uniform, cherry blossom",
|
59 |
-
"no person, Mt. fuji, 4k, highly, detailed"
|
60 |
-
"no person, Tokyo, 4k, highly, detailed"
|
61 |
"1boy, (upper body)++, black short hair, black eyes, looking at viewer, green leaves",
|
62 |
"1boy, (full body)++, black bob short hair, black eyes, school uniform, green leaves",
|
63 |
]
|
|
|
64 |
with gr.Blocks(css=css) as demo:
|
65 |
gr.Markdown('''# Emi 2
|
66 |
Official demo for Emi 2
|
|
|
33 |
@spaces.GPU
|
34 |
def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
|
35 |
conditioning, pooled = compel(prompt)
|
36 |
+
negative_conditioning, negatice_pooled = compel("unaestheticXLv31, bad hand, bad anatomy, low quality, "+negative_prompt)
|
37 |
result = pipe_normal(
|
38 |
prompt_embeds=conditioning,
|
39 |
pooled_prompt_embeds=pooled,
|
|
|
56 |
normal_examples = [
|
57 |
"1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom",
|
58 |
"1girl, (full body)++, brown bob short hair, brown eyes, school uniform, cherry blossom",
|
59 |
+
"no person, manga, Mt. fuji, 4k, highly, detailed",
|
60 |
+
"no person, anime, Tokyo, 4k, highly, detailed",
|
61 |
"1boy, (upper body)++, black short hair, black eyes, looking at viewer, green leaves",
|
62 |
"1boy, (full body)++, black bob short hair, black eyes, school uniform, green leaves",
|
63 |
]
|
64 |
+
|
65 |
with gr.Blocks(css=css) as demo:
|
66 |
gr.Markdown('''# Emi 2
|
67 |
Official demo for Emi 2
|