Upload folder using huggingface_hub
Browse files- app.py +12 -12
- templates/red_bar_lighting_prompt.jinja +61 -0
- templates/teal_noir_prompt.jinja +43 -0
app.py
CHANGED
|
@@ -22,10 +22,10 @@ StyleName = Literal[
|
|
| 22 |
"Fashion",
|
| 23 |
"Emotional Lifestyle",
|
| 24 |
"Extreme Sports",
|
| 25 |
-
"Modern Product",
|
| 26 |
"Captivating",
|
| 27 |
-
"Cool Lifestyle",
|
| 28 |
"Image Replication",
|
|
|
|
|
|
|
| 29 |
]
|
| 30 |
|
| 31 |
|
|
@@ -57,21 +57,11 @@ STYLE_DEFINITIONS: dict[StyleName, StyleDefinition] = {
|
|
| 57 |
template_filename="extreme_sports_prompt.jinja",
|
| 58 |
info="High-adrenaline action shots that emphasize energy, motion, and athletic feats.",
|
| 59 |
),
|
| 60 |
-
"Modern Product": StyleDefinition(
|
| 61 |
-
name="Modern Product",
|
| 62 |
-
template_filename="modern_product_prompt.jinja",
|
| 63 |
-
info="Crisp product visuals with contemporary lighting and minimalistic staging.",
|
| 64 |
-
),
|
| 65 |
"Captivating": StyleDefinition(
|
| 66 |
name="Captivating",
|
| 67 |
template_filename="captivating_prompt.jinja",
|
| 68 |
info="Visually striking compositions with dramatic flair and memorable storytelling.",
|
| 69 |
),
|
| 70 |
-
"Cool Lifestyle": StyleDefinition(
|
| 71 |
-
name="Cool Lifestyle",
|
| 72 |
-
template_filename="cool_lifestyle_prompt.jinja",
|
| 73 |
-
info="Casual yet stylish lifestyle scenes with an effortlessly cool atmosphere.",
|
| 74 |
-
),
|
| 75 |
"Image Replication": StyleDefinition(
|
| 76 |
name="Image Replication",
|
| 77 |
template_filename="image_replication_prompt.jinja",
|
|
@@ -80,6 +70,16 @@ STYLE_DEFINITIONS: dict[StyleName, StyleDefinition] = {
|
|
| 80 |
" inserting the user or their face in place of the original subject. Eg. If the reference image is a music album cover, the user's face will be embedded in the album cover."
|
| 81 |
),
|
| 82 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
PROMPT_TEMPLATES = {
|
|
|
|
| 22 |
"Fashion",
|
| 23 |
"Emotional Lifestyle",
|
| 24 |
"Extreme Sports",
|
|
|
|
| 25 |
"Captivating",
|
|
|
|
| 26 |
"Image Replication",
|
| 27 |
+
"Red Bar Lighting",
|
| 28 |
+
"Teal Noir",
|
| 29 |
]
|
| 30 |
|
| 31 |
|
|
|
|
| 57 |
template_filename="extreme_sports_prompt.jinja",
|
| 58 |
info="High-adrenaline action shots that emphasize energy, motion, and athletic feats.",
|
| 59 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
"Captivating": StyleDefinition(
|
| 61 |
name="Captivating",
|
| 62 |
template_filename="captivating_prompt.jinja",
|
| 63 |
info="Visually striking compositions with dramatic flair and memorable storytelling.",
|
| 64 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
"Image Replication": StyleDefinition(
|
| 66 |
name="Image Replication",
|
| 67 |
template_filename="image_replication_prompt.jinja",
|
|
|
|
| 70 |
" inserting the user or their face in place of the original subject. Eg. If the reference image is a music album cover, the user's face will be embedded in the album cover."
|
| 71 |
),
|
| 72 |
),
|
| 73 |
+
"Red Bar Lighting": StyleDefinition(
|
| 74 |
+
name="Red Bar Lighting",
|
| 75 |
+
template_filename="red_bar_lighting_prompt.jinja",
|
| 76 |
+
info="Red bar lighting style for image generation.",
|
| 77 |
+
),
|
| 78 |
+
"Teal Noir": StyleDefinition(
|
| 79 |
+
name="Teal Noir",
|
| 80 |
+
template_filename="teal_noir_prompt.jinja",
|
| 81 |
+
info="Teal noir style for image generation.",
|
| 82 |
+
)
|
| 83 |
}
|
| 84 |
|
| 85 |
PROMPT_TEMPLATES = {
|
templates/red_bar_lighting_prompt.jinja
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an expert prompt engineer for captivating image generation.
|
| 2 |
+
|
| 3 |
+
Transform the user's simple prompt into a highly descriptive paragraph that produces a visually striking image. The photo of the user will be provided to you, so you should use it to infer the subject's appearance and incorporate accurate descriptors. Focus on making the subject highlighted in red and warm tones, and the background black for contrast as the main focus of this style, with synematic motion blur and glow.
|
| 4 |
+
|
| 5 |
+
Create a gritty, photorealistic editorial photograph set in a bar cinematic lighting with dominant
|
| 6 |
+
red/amber tones and dramatic lighting. Capture the scene through an extreme fisheye lens
|
| 7 |
+
that warps perspective and creates visual tension. Focus on human elements (hands, faces,
|
| 8 |
+
expressions) interacting with objects that highlight the user's prompt (i.e. if the prompt involves roller skating and object of interaction might be grabbing a nearby telephone pole or tying the roller skates)
|
| 9 |
+
to create narrative intrigue. Include atmospheric details like floating dust, motion blur, light bloom, and analog
|
| 10 |
+
film artifacts (scratches, grain, halation) for tactile realism. The lighting should be moody and
|
| 11 |
+
directional with neon accents creating halos and reflections.The background should be REALLY REALLY DARK for contrast.
|
| 12 |
+
The composition should feel kinetic, intimate, and slightly disorienting—like a fleeting moment captured in a fever dream
|
| 13 |
+
or memory. The overall mood should be cinematic, raw, and intensely atmospheric.
|
| 14 |
+
|
| 15 |
+
Tips for Success:
|
| 16 |
+
- Make the prompt short
|
| 17 |
+
- Make the subject red with red lighting, and shiny features in yellow with a glowing neon effect
|
| 18 |
+
- Focus on creating a dark background mostly all black or REALLY REALLY DARK for contrast
|
| 19 |
+
- Describe how all elements of the prompt are highlighted in red and warm tones with a glowing neon effect
|
| 20 |
+
- Add lots and lots of glow and shine and motion blur
|
| 21 |
+
- Specify how the fisheye distortion affects different elements in the scene.
|
| 22 |
+
- Include atmospheric effects (dust, motion blur, bloom) to create depth
|
| 23 |
+
|
| 24 |
+
key words:
|
| 25 |
+
gritty, photorealistic, editorial, fisheye lens, distortion, bar scene, tattoos, cocktail glass,
|
| 26 |
+
amber drink, red lighting, neon glow, dust particles, motion blur, halation, bloom, film
|
| 27 |
+
scratches, grain, underground atmosphere, cinematic, memory-like, fever dream, analog
|
| 28 |
+
quality.
|
| 29 |
+
|
| 30 |
+
Examples:
|
| 31 |
+
Input: Picture of me with phone and soda at a bar
|
| 32 |
+
Input photo: A buzz cut man with tattoos
|
| 33 |
+
Output prompt:
|
| 34 |
+
A gritty, photorealistic editorial portrait in vertical format, captured through an extreme
|
| 35 |
+
fisheye lens. The scene shows a man with a tight buzz cut and a bold black face tattoo,
|
| 36 |
+
mid-conversation on a metallic flip phone held close to his ear. His expression is tense and
|
| 37 |
+
focused, his skin glows with a subtle sheen of sweat bead glistening a warm yellow glow against
|
| 38 |
+
his bright red illuminated face. In his other hand, he grips a partially crushed, condensation-covered soda can —
|
| 39 |
+
the aluminum reflecting streaks of neon light in warm tones. The fisheye lens warps the scene
|
| 40 |
+
heavily: his head and phone appear exaggerated, while the soda can curves unnaturally
|
| 41 |
+
toward the viewer. The background melts into a vortex of dark shadows with a subtle glowing warm bloom effect. Halation bleeds around light edges, and bloom glows along the
|
| 42 |
+
contours of the can, ice, and skin. Red motion blur trails off his fingers and jawline slightly, adding
|
| 43 |
+
energy and tension. Dust flecks, film scratches, and a soft analog haze overlay the image,
|
| 44 |
+
giving it the raw, tactile vibe of a disposable film shot in a chaotic bar or underground venue.
|
| 45 |
+
The entire mood is feverish, cinematic, and dreamlike — like a burnt memory wrapped in
|
| 46 |
+
noise. Use a Photorealistic Style. Resolution 1024x1792.
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
why the output is good:
|
| 50 |
+
- Subject is in red, shinny and glossy features are in yellow, and the background is black.
|
| 51 |
+
Most importantly the prompt incorporates red and warm tones by incorporating them into every aspect of the prompt such as the face, the skin, the neon light, the background, the motion blur, the dust flecks, the film scratches, and the analog haze.
|
| 52 |
+
- Character details are precise (buzz cut, face tattoo, tense expression) to establish clear identity.
|
| 53 |
+
- The prompt describes the subject's appearance (buzz cut, tattoos)
|
| 54 |
+
- The fisheye distortion specifically affects different elements differently (exaggerated head and phone, curved can) for dynamic composition.
|
| 55 |
+
|
| 56 |
+
what can be better:
|
| 57 |
+
- add more contrast between subject and background
|
| 58 |
+
- add more information about the subject's expression
|
| 59 |
+
|
| 60 |
+
You need to enhance the following prompt according to the guide above. Only output the prompt, no other text.
|
| 61 |
+
{{ user_prompt }}
|
templates/teal_noir_prompt.jinja
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an expert prompt engineer for captivating image generation.
|
| 2 |
+
|
| 3 |
+
Transform the user's simple prompt into a highly descriptive paragraph that produces a visually striking image. The photo of the user will be provided to you, so you should use it to infer the subject's appearance and incorporate accurate descriptors. Focus on making the subject highlighted in red and warm tones, and the background black for contrast as the main focus of this style, with synematic motion blur and glow.
|
| 4 |
+
|
| 5 |
+
Create a gritty, photorealistic editorial photograph set in a cinematic atmosphere, with sad, lonely lighting. Use dominant green and blue tones, accented with yellow highlights the illuminates the subjects face, and dramatic contrasts. Capture the scene through a shoulder-level lens.
|
| 6 |
+
|
| 7 |
+
The focal point of the image should be the subject’s face—moody and distinctly sad. Tilt the head slightly downward in a sideways profile to suggest “looking down,” with the eyes cast downward as well to convey sadness, mystery, and loneliness, creating narrative intrigue.
|
| 8 |
+
|
| 9 |
+
The subject should be uniformly lit in blue and teal tones, with no natural skin or clothing colors visible—everything coated in a matte neon teal light. Include a single yellow accent light tied to the user’s prompt that casts a partial light on the subject. For example, if the subject is smoking, the lighter’s flame should cast a yellow glow onto part of their face; if roller skating, sparks from the skates should scatter yellow refracted light across the subject. If the prompt does not include something some source of light make up a light source such as a lamp or a glowing object (i.e. flower, rock, book). Make sure the yellow light illuminates the subject in a cool way, as if there is a spark of hope in their sadness.
|
| 10 |
+
|
| 11 |
+
Keep the background composition simple, without clutter, but add gritty details such as broken tiles if the subject is in a bathroom. The background should remain simple but never plain—avoid blank white walls. Instead, use patterns such as bathroom tiles or floral wallpaper, but add elements of decay (e.g., broken tiles, torn wallpaper) to reinforce the cinematic mood.
|
| 12 |
+
|
| 13 |
+
The composition should feel lonely, intimate, unsettling, and melancholic—like being alone in a dark alley. The overall atmosphere should be cinematic, raw, and intensely evocative.
|
| 14 |
+
should feel lonely, intimate, unsettling, and melancholic—like being alone in a dark alley. The overall atmosphere should be cinematic, raw, and intensely evocative.
|
| 15 |
+
|
| 16 |
+
Tips for Success:
|
| 17 |
+
- DONT MAKE HER NAKED
|
| 18 |
+
- Make the prompt short
|
| 19 |
+
- Make the prompt relevant to the input prompt
|
| 20 |
+
- Make the subject teal and uniformly coats with no natural colors shinning through
|
| 21 |
+
- Describe where the yellow lighting is coming from, and how it highlights the subject with light
|
| 22 |
+
- keep the background simple to highlight lonliness but add abandoned featurs like broken wall paper or sharpie marks
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
key words:
|
| 26 |
+
gritty, photorealistic, editorial, cinematic lighting, neon teal glow, matte neon teal light, uniform color coating, sad lonely atmosphere, moody face downward gaze, tilted head profile, mysterious melancholic expression, shoulder-level lens, human interaction with objects, broken tiles, ripped wallpaper, decayed background, yellow accent lighting, cigarette lighter glow yellow, roller skate sparks yellow, simple patterned background, bathroom tiles, floral wallpaper, atmospheric grit, raw cinematic mood, lonely alley vibe, intimate unsettling melancholic, intensely atmospheric
|
| 27 |
+
|
| 28 |
+
Examples:
|
| 29 |
+
Input: Picture of a girl smoking in a bath
|
| 30 |
+
Input photo: A Latina woman with wavy blond hair
|
| 31 |
+
Output prompt:
|
| 32 |
+
A gritty, photorealistic editorial portrait in vertical format, captured through a shoulder-level lens. The scene shows a Latina woman with wavy blond hair seated in the center of a run-down bathtub, surrounded by cracked and broken tiles. She is caught in the moment of lighting a cigarette, her lighter held close to her face. Her head tilts downward in a side profile, her eyes cast low with a moody, sorrowful expression that radiates loneliness. The entire subject is coated in a matte teal glow—uniform and unbroken—so that no natural skin or hair tones are visible, only the surreal, monochromatic wash of teal. The lighter, however, cuts through with a single burst of cinematic yellow light, illuminating her cheekbones, chin and part of her forhead and the cigarette, adding stark contrast against the teal wash and adding an element of hope through the dispair in the scene.
|
| 33 |
+
|
| 34 |
+
The bath itself is dark and minimal, with jagged grout lines and fragments of chipped, broken tiles visible in the background, adding grit and decay. The teal lighting flattens everything into a haunting, matte finish, stripping away warmth and natural life. Subtle film grain and analog texture overlay the image, giving it a raw, tactile realism. The composition is intimate and claustrophobic, with the woman perfectly centered, surrounded by the lonely geometry of ruined bathroom tiles, and only a yellow light to keep her hopeful. The mood is cinematic, raw, and intensely atmospheric—like a quiet, sad memory suspended in teal light. Use a Photorealistic Style. Resolution 1024x1792.
|
| 35 |
+
|
| 36 |
+
why the output is good:
|
| 37 |
+
- the prompt describes the subject of being sad and lonely, with her head titled down, and sad eyes
|
| 38 |
+
- the prompt specificall details that the subject and background are coated with even teal
|
| 39 |
+
- the propt specifies how the yellow accent highlights her face, and describes it as hopeful
|
| 40 |
+
- the background composition is simple, and looks sad because of the broken tiles
|
| 41 |
+
|
| 42 |
+
You need to enhance the following prompt according to the guide above. Only output the prompt, no other text.
|
| 43 |
+
{{ user_prompt }}
|