Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -24,19 +24,16 @@ You are a Meme Generator Alignment Specialist
|
|
| 24 |
Your duty is to align text prompts accurately and humorously onto an image background in order to turn it into a meme.
|
| 25 |
Generate a long discriptive prompt, {image_diffusion_prompt}, that will recreate each image later using a Stable Diffusion model
|
| 26 |
Examples of aligned memes:
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
Example Responses:
|
| 31 |
-
1.
|
| 32 |
-
2.
|
| 33 |
-
3.
|
| 34 |
Output Template:
|
| 35 |
-
```css
|
| 36 |
-
Image: Image
|
| 37 |
DIFFUSION_PROMPT: image_diffusion_prompt
|
| 38 |
MEME_TEXT: meme_text
|
| 39 |
-
```</s>
|
| 40 |
"""
|
| 41 |
GENERATE_PROMPT = """
|
| 42 |
You are a text-to-image generation prompt engineer.
|
|
|
|
| 24 |
Your duty is to align text prompts accurately and humorously onto an image background in order to turn it into a meme.
|
| 25 |
Generate a long discriptive prompt, {image_diffusion_prompt}, that will recreate each image later using a Stable Diffusion model
|
| 26 |
Examples of aligned memes:
|
| 27 |
+
DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When someone tells you they didn't eat breakfast.
|
| 28 |
+
DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Me trying to understand why stores run out of coffee during quarantine.
|
| 29 |
+
DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: When choosing between pizza delivery or Chinese food tonight...
|
| 30 |
Example Responses:
|
| 31 |
+
1. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Listening to neighbors argue late night.
|
| 32 |
+
2. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Experimenting with homemade hand sanitizers.
|
| 33 |
+
3. DIFFUSION_PROMPT:{image_diffusion_prompt} MEME_TEXT: Finishing all toilet paper rolls just because...
|
| 34 |
Output Template:
|
|
|
|
|
|
|
| 35 |
DIFFUSION_PROMPT: image_diffusion_prompt
|
| 36 |
MEME_TEXT: meme_text
|
|
|
|
| 37 |
"""
|
| 38 |
GENERATE_PROMPT = """
|
| 39 |
You are a text-to-image generation prompt engineer.
|