Spaces:
Runtime error
Runtime error
alfredplpl
commited on
Commit
β’
36cdd82
1
Parent(s):
99749b3
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("unaestheticXLv31, bad hand, bad anatomy, low quality, "+negative_prompt)
|
37 |
result = pipe_normal(
|
38 |
prompt_embeds=conditioning,
|
39 |
pooled_prompt_embeds=pooled,
|
@@ -68,7 +68,7 @@ with gr.Blocks(css=css) as demo:
|
|
68 |
''')
|
69 |
with gr.Group():
|
70 |
with gr.Row():
|
71 |
-
prompt_normal = gr.Textbox(show_label=False, scale=4, placeholder="Your prompt, e.g.: 1girl,
|
72 |
button_normal = gr.Button("Generate", min_width=120)
|
73 |
output_normal = gr.Image(label="Your result image", interactive=False)
|
74 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
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, 3d, photo, realism, "+negative_prompt)
|
37 |
result = pipe_normal(
|
38 |
prompt_embeds=conditioning,
|
39 |
pooled_prompt_embeds=pooled,
|
|
|
68 |
''')
|
69 |
with gr.Group():
|
70 |
with gr.Row():
|
71 |
+
prompt_normal = gr.Textbox(show_label=False, scale=4, placeholder="Your prompt, e.g.: 1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
|
72 |
button_normal = gr.Button("Generate", min_width=120)
|
73 |
output_normal = gr.Image(label="Your result image", interactive=False)
|
74 |
with gr.Accordion("Advanced Settings", open=False):
|