Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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}
|