Astridkraft commited on
Commit
ef8991a
·
verified ·
1 Parent(s): f4ed114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -1446,21 +1446,21 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
1446
  # Anime-Stile
1447
  anime_keywords = ["anime", "manga", "cartoon", "character", "chibi", "cel-shading", "lineart"]
1448
 
1449
- front_face_keywords = [
1450
- "portrait", "face", "eyes", "smile", "lips", "nose", "expression",
1451
- "looking at camera", "frontal view", "headshot", "selfie", "close-up",
1452
- "profile", "side view", "front", "frontal", "facing camera", "jawline"
1453
- ]
1454
-
1455
- back_head_keywords = [
1456
- "back of head", "from behind", "rear view", "looking away",
1457
- "turned away", "back view", "backside", "back", "rear",
1458
- "hair only", "ponytail", "hairstyle", "hair", "back hair"
1459
- ]
1460
 
1461
  # Bestimme ob Gesicht vorne oder Hinterkopf vorne
1462
- is_front_face = any(keyword in prompt_lower for keyword in front_face_keywords)
1463
- is_back_head = any(keyword in prompt_lower for keyword in back_head_keywords)
1464
 
1465
  # Fallback: Wenn keine spezifischen Keywords, annehmen es ist Gesicht
1466
  if not is_front_face and not is_back_head:
 
1446
  # Anime-Stile
1447
  anime_keywords = ["anime", "manga", "cartoon", "character", "chibi", "cel-shading", "lineart"]
1448
 
1449
+ #front_face_keywords = [
1450
+ # "portrait", "face", "eyes", "smile", "lips", "nose", "expression",
1451
+ # "looking at camera", "frontal view", "headshot", "selfie", "close-up",
1452
+ # "profile", "side view", "front", "frontal", "facing camera", "jawline"
1453
+ #]
1454
+
1455
+ #back_head_keywords = [
1456
+ # "back of head", "from behind", "rear view", "looking away",
1457
+ # "turned away", "back view", "backside", "back", "rear",
1458
+ # "hair only", "ponytail", "hairstyle", "hair", "back hair"
1459
+ #]
1460
 
1461
  # Bestimme ob Gesicht vorne oder Hinterkopf vorne
1462
+ #is_front_face = any(keyword in prompt_lower for keyword in front_face_keywords)
1463
+ #is_back_head = any(keyword in prompt_lower for keyword in back_head_keywords)
1464
 
1465
  # Fallback: Wenn keine spezifischen Keywords, annehmen es ist Gesicht
1466
  if not is_front_face and not is_back_head: