Geek7 commited on
Commit
be3beec
·
verified ·
1 Parent(s): 81bb2e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -14,15 +14,13 @@ HF_TOKEN = os.environ.get("HF_TOKEN") # Ensure to set your Hugging Face token i
14
  client = InferenceClient(token=HF_TOKEN)
15
 
16
  # Hardcoded negative prompt
17
- HARDCODED_NEGATIVE_PROMPT = """((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)),
18
- out of frame, extra fingers, mutated hands, ((poorly drawn hands)),
19
- ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry,
20
- ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face,
21
- (((disfigured))), out of frame, ugly, extra limbs, (bad anatomy),
22
- gross proportions, (malformed limbs), ((missing arms)), ((missing legs)),
23
- (((extra arms))), (((extra legs))), mutated hands, (fused fingers),
24
- (too many fingers), (((long neck)))"""
25
-
26
 
27
  @app.route('/')
28
  def home():
 
14
  client = InferenceClient(token=HF_TOKEN)
15
 
16
  # Hardcoded negative prompt
17
+ HARDCODED_NEGATIVE_PROMPT = """
18
+ ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands,
19
+ poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy,
20
+ bad proportions, extra limbs, cloned face, disfigured, gross proportions,
21
+ malformed limbs, missing arms, missing legs, extra arms, extra legs,
22
+ mutated hands, fused fingers, too many fingers, long neck
23
+ """
 
 
24
 
25
  @app.route('/')
26
  def home():