alfredplpl commited on
Commit
be881cb
1 Parent(s): ee6a103

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,8 +32,8 @@ 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
- 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)
@@ -67,7 +67,7 @@ normal_examples = [
67
 
68
  with gr.Blocks(css=css) as demo:
69
  gr.Markdown('''# Emi 2
70
- Official demo for Emi 2. Click the generate button!
71
  ''')
72
  with gr.Group():
73
  with gr.Row():
 
32
 
33
  @spaces.GPU
34
  def run_normal(prompt, negative_prompt="", guidance_scale=7.5, progress=gr.Progress(track_tqdm=True)):
35
+ if(prompt==""):
36
+ conditioning, pooled = compel("1girl, (upper body)++, brown bob short hair, brown eyes, looking at viewer, cherry blossom")
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)
 
67
 
68
  with gr.Blocks(css=css) as demo:
69
  gr.Markdown('''# Emi 2
70
+ Official demo for [Emi 2](https://huggingface.co/aipicasso/emi-2). Click the generate button!
71
  ''')
72
  with gr.Group():
73
  with gr.Row():