lulavc commited on
Commit
fbf53ee
·
verified ·
1 Parent(s): d62a0ab

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -633,7 +633,9 @@ def analyze_image_with_glm(image: Optional[Image.Image]) -> str:
633
  },
634
  {
635
  "type": "text",
636
- "text": """Describe this image in EXTREME DETAIL. Write 1000-1500 words. Do NOT stop early.
 
 
637
 
638
  START directly with the main subject. NO preambles like "This image shows" or "I can see".
639
 
@@ -651,7 +653,7 @@ DESCRIBE EVERYTHING VISIBLE IN EXHAUSTIVE DETAIL:
651
  - ATMOSPHERE: Mood, emotion, weather, season, energy
652
  - SMALL DETAILS: Patterns, embroidery, buttons, jewelry, stitching, imperfections
653
 
654
- CRITICAL: Write at least 1000 words. Describe EVERY person, object, and detail visible. Do NOT summarize - describe each element individually. Keep writing until nothing is left to describe."""
655
  }
656
  ]
657
  }
 
633
  },
634
  {
635
  "type": "text",
636
+ "text": """Describe this image in EXTREME DETAIL.
637
+
638
+ GLOBAL RULE: Your output text CANNOT exceed 4000 TOKENS. This is a strict limit.
639
 
640
  START directly with the main subject. NO preambles like "This image shows" or "I can see".
641
 
 
653
  - ATMOSPHERE: Mood, emotion, weather, season, energy
654
  - SMALL DETAILS: Patterns, embroidery, buttons, jewelry, stitching, imperfections
655
 
656
+ Describe EVERY person, object, and detail visible. Do NOT summarize - describe each element individually. Use all available space up to 4000 tokens maximum."""
657
  }
658
  ]
659
  }