ismdrobiul489 commited on
Commit
6a240c6
·
1 Parent(s): bb7b8e3

Simplify image prompt: remove confusing keywords, clear NO TEXT instruction

Browse files
modules/fact_image/services/fact_creator.py CHANGED
@@ -16,45 +16,16 @@ from .text_overlay import TextOverlay
16
  logger = logging.getLogger(__name__)
17
 
18
 
19
- # Master prompt for image generation
20
- IMAGE_SYSTEM_PROMPT = """You are an AI image generator for short-form vertical videos (Reels, TikTok, Shorts).
21
 
22
- Your task:
23
- Generate ONE high-quality image based on the user-provided `image_prompt`. The image must be ideal for placing text on top.
24
 
25
- OUTPUT REQUIREMENTS:
26
- - Resolution: 1080x1920 (9:16 vertical)
27
- - Clean background, balanced lighting, no clutter
28
- - Ensure 40–60% empty or soft area for text overlay
29
- - Avoid too many distracting details
30
- - Aesthetic cinematic style
31
- - Professional color grading
32
- - Sharp subject, soft background depth
33
- - Keep main visual elements aligned in center or rule-of-thirds
34
-
35
- CHARACTERISTICS:
36
- - High-contrast but not noisy
37
- - Good separation of foreground and background
38
- - Smooth gradients, soft shadows
39
- - Aesthetic and modern visual style
40
- - Works well with motivational or psychology fact text overlay
41
-
42
- DO NOT:
43
- - Add any text in the image
44
- - Add watermarks
45
- - Add captions
46
- - Add UI elements
47
- - Crop faces weirdly
48
- - Use extreme zoom
49
-
50
- STYLE GUIDELINES:
51
- - Vibrant, cinematic, trending Instagram/TikTok look
52
- - Strong composition
53
- - Beautiful lighting (soft, natural, or dramatic depending on prompt)
54
- - Enhances emotional feel of the fact message
55
-
56
- [User Prompt]
57
- {image_prompt}"""
58
 
59
 
60
  class FactCreator:
 
16
  logger = logging.getLogger(__name__)
17
 
18
 
19
+ # Master prompt for image generation (CLEAN, NO TEXT)
20
+ IMAGE_SYSTEM_PROMPT = """Generate a clean, cinematic, vertical image (9:16 aspect ratio) based on this description:
21
 
22
+ {image_prompt}
 
23
 
24
+ IMPORTANT:
25
+ - Do NOT add any text, words, letters, numbers, or watermarks in the image
26
+ - Leave empty/soft area at bottom 40% for text overlay
27
+ - Clean aesthetic, modern TikTok/Instagram style
28
+ - High-quality, beautiful lighting"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
 
31
  class FactCreator: