Skip to content

Commit 0c6211c

Browse files
authored
Merge pull request #15 from PtiCalin/codex/insert-header-comment-and-docstrings-in-modes.py
Add header and comments for modes
2 parents f882ac5 + 575f508 commit 0c6211c

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/vault_image_description/modes.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
1+
# =======================================
2+
# Vault Image Description Modes
3+
# ---------------------------------------
4+
# Enumerates the ways PtiCalin can chat
5+
# about an image. Each mode selects a
6+
# prompt for Ollama so your alt text has
7+
# just the right style.
8+
# =======================================
9+
110
from enum import Enum
211

312
class Mode(Enum):
4-
PINTEREST_PIN = "pinterest_pin"
5-
STABLE_DIFFUSION_PROMPT = "stable_diffusion_prompt"
6-
EKPHRASIS = "ekphrasis"
7-
BRIEF = "brief"
8-
DETAILED = "detailed"
9-
EXTRACT_TEXT = "extract_text"
10-
MIDJOURNEY_PROMPT = "midjourney_prompt"
11-
TECHNICAL_ARTSTYLE = "technical_artstyle"
12-
ANALYSIS = "analysis"
13+
PINTEREST_PIN = "pinterest_pin" # 📌 Trendy pin title and caption.
14+
STABLE_DIFFUSION_PROMPT = "stable_diffusion_prompt" # 🎨 Prompt fit for image generation.
15+
EKPHRASIS = "ekphrasis" # 🖋️ A poetic take on the picture.
16+
BRIEF = "brief" # ✂️ Short alt text that gets to the point.
17+
DETAILED = "detailed" # 🔍 Longer description with extra nuance.
18+
EXTRACT_TEXT = "extract_text" # 🔡 Pull out any visible text.
19+
MIDJOURNEY_PROMPT = "midjourney_prompt" # 🚀 Prompt tailored for Midjourney.
20+
TECHNICAL_ARTSTYLE = "technical_artstyle" # 📐 Notes on art techniques and style.
21+
ANALYSIS = "analysis" # 🎓 Academic commentary on the image.
1322

1423
PROMPTS = {
1524
Mode.PINTEREST_PIN: (

0 commit comments

Comments
 (0)