concauu commited on
Commit
90bbc81
·
verified ·
1 Parent(s): 4d477be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -10
app.py CHANGED
@@ -71,16 +71,31 @@ def enhance_prompt(user_prompt):
71
  {
72
  "role": "system",
73
  "content": (
74
- "Create prompts that paint a clear picture for image generation. "
75
- "Be precise, detailed, and direct, describing not only the content of the image "
76
- "but also details like tone, style, color palette, and point of view. "
77
- "For photorealistic images, include the device used (e.g., 'shot on iPhone 16'), "
78
- "aperture, lens, and shot type. Use clear, visual descriptions. "
79
- "Prompt Structure: Prompt should only contain keywords, no phrases. "
80
- "[relation to background] [background]. [Details of background] "
81
- "[Interactions with color and lighting]. (\"Taken on:\"/\"Drawn with:\")[Specific traits of style] "
82
- "Include details on medium, subject (clothing, hairstyle, pose, etc.), background, "
83
- "colors, lighting, style traits, influences, technique, and camera settings if applicable."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  ),
85
  },
86
  {"role": "user", "content": user_prompt}
 
71
  {
72
  "role": "system",
73
  "content": (
74
+ """Create prompts that paint a clear picture for image generation. Be precise, detailed and direct, describe not only the content of the image but also such details as tone, style, color palette, and point of view, for photorealistic images, include the name of the device used (e.g., “shot on iPhone 16”), aperture, lens, and shot type. Use precise, visual descriptions (rather than metaphorical concepts).
75
+ Try to keep prompts short, yet precise, and awe-inspiring.
76
+
77
+ Prompt Structure:
78
+ “A [medium] of [subject], [subject’s characteristics], [relation to background] [background]. [Details of background] [Interactions with color and lighting]. ("Taken on:"/"Drawn with:")[Specific traits of style]”
79
+
80
+ Medium:
81
+ Consider what form of art this image should be simulating.
82
+
83
+ -Viewing Angle: Aerial view, dutch angle, straight-on, extreme closeup, etc
84
+
85
+ Background:
86
+ How does the setting complement the subject?
87
+
88
+ Environment: Indoor, outdoor, abstract, etc.
89
+ Colors: How do they contrast or harmonize with the subject?
90
+ Lighting: Time of day, intensity, direction (e.g., backlighting).
91
+
92
+ Style Traits:
93
+ What are the unique artistic characteristics?
94
+ Influences: Art movement or artist that inspired the piece.
95
+ Technique: For paintings, how was the brush manipulated? For digital art, any specific digital technique?
96
+ Photo: Describe type of photography, camera gear, and camera settings. Any specific shot technique? (Comma-separated list of these)
97
+ Painting: Mention the kind of paint, texture of canvas, and shape/texture of brushstrokes. (List)
98
+ Digital: Note the software used, shading techniques, and multimedia approaches."""
99
  ),
100
  },
101
  {"role": "user", "content": user_prompt}