alfredplpl commited on
Commit
c6355a3
·
1 Parent(s): da4f93d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -131,7 +131,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
131
 
132
  if(prompt=="" and neg_prompt==""):
133
  prompt="1girl+, sunflowers, brown bob hair, brown eyes, sky"
134
- neg_prompt=f"({unaestheticXLv31})--, ({unaestheticXLv13})--"
135
  return prompt, neg_prompt
136
 
137
  splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
@@ -140,7 +140,7 @@ def auto_prompt_correction(prompt_ui,neg_prompt_ui,disable_auto_prompt_correctio
140
  for word in human_words:
141
  if( word in splited_prompt):
142
  prompt=f"{prompt}"
143
- neg_prompt=f"{neg_prompt},({unaestheticXLv31})--, ({unaestheticXLv13})--"
144
  return prompt, neg_prompt
145
 
146
  animal_words=["cat","dog","bird","pigeon","rabbit","bunny","horse"]
@@ -206,10 +206,10 @@ with gr.Blocks(css=css) as demo:
206
  sample : Click "Generate" button without any prompts.
207
  </p>
208
  <p>
209
- sample prompt1 : 1girl, yukata, fireworks
210
  </p>
211
  <p>
212
- sample prompt2 : 1boy, school uniform
213
  </p>
214
  Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🥶</b>. For faster inference it is recommended to <b>upgrade to GPU in <a href='https://huggingface.co/spaces/akhaliq/cool-japan-diffusion-2-1-0/settings'>Settings</a></b>"} <br>
215
  <a style="display:inline-block" href="https://huggingface.co/spaces/aipicasso/picasso-diffusion-latest-demo?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> to say goodbye from waiting for the generating.
 
131
 
132
  if(prompt=="" and neg_prompt==""):
133
  prompt="1girl+, sunflowers, brown bob hair, brown eyes, sky"
134
+ neg_prompt=f"({unaestheticXLv31})--, ({unaestheticXLv13})--, (worst,bad,poorly,ugly,cubism,pablo picasso,dust)+,(mutated,malformed,monster,creature,horror)+,(inaccurate limb,extra legs,fused limb,disconnected limb,disembodied limb)+,bad anatomy,3legs,3arms,extra foot,extra shoes,empty eyes,child drawing"
135
  return prompt, neg_prompt
136
 
137
  splited_prompt=prompt.replace(","," ").replace("_"," ").split(" ")
 
140
  for word in human_words:
141
  if( word in splited_prompt):
142
  prompt=f"{prompt}"
143
+ neg_prompt=f"{neg_prompt},({unaestheticXLv31})--, ({unaestheticXLv13})--, (worst,bad,poorly,ugly,cubism,pablo picasso,dust)+,(mutated,malformed,monster,creature,horror)+,(inaccurate limb,extra legs,fused limb,disconnected limb,disembodied limb)+,bad anatomy,3legs,3arms,extra foot,extra shoes,empty eyes,child drawing,"
144
  return prompt, neg_prompt
145
 
146
  animal_words=["cat","dog","bird","pigeon","rabbit","bunny","horse"]
 
206
  sample : Click "Generate" button without any prompts.
207
  </p>
208
  <p>
209
+ sample prompt1 : 1girl++, yukata, fireworks
210
  </p>
211
  <p>
212
+ sample prompt2 : 1boy++, school uniform
213
  </p>
214
  Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🥶</b>. For faster inference it is recommended to <b>upgrade to GPU in <a href='https://huggingface.co/spaces/akhaliq/cool-japan-diffusion-2-1-0/settings'>Settings</a></b>"} <br>
215
  <a style="display:inline-block" href="https://huggingface.co/spaces/aipicasso/picasso-diffusion-latest-demo?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> to say goodbye from waiting for the generating.