alfredplpl commited on
Commit
36cdd82
β€’
1 Parent(s): 99749b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, face, brown bob short hair, brown eyes, looking at viewer")
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):