Update app.py
Browse files
app.py
CHANGED
|
@@ -51,10 +51,10 @@ def build_poem_prompt(voice_instruction, constraint_instruction, format_type, to
|
|
| 51 |
"""Constructs a simple, direct prompt for initial poem generation."""
|
| 52 |
# Combined, prioritized instruction block for maximum clarity
|
| 53 |
full_instruction = (
|
| 54 |
-
f"
|
| 55 |
-
f"
|
| 56 |
-
f"
|
| 57 |
-
f"
|
| 58 |
)
|
| 59 |
return full_instruction
|
| 60 |
|
|
|
|
| 51 |
"""Constructs a simple, direct prompt for initial poem generation."""
|
| 52 |
# Combined, prioritized instruction block for maximum clarity
|
| 53 |
full_instruction = (
|
| 54 |
+
f"Instruction:\n"
|
| 55 |
+
f"{selected_voice}\n"
|
| 56 |
+
f"{selected_constraint} Your response should only contain the {format_type} that you generate. Nothing else.\n"
|
| 57 |
+
f"Write the {format_type} about this topic: '{topic}'.\n\n"
|
| 58 |
)
|
| 59 |
return full_instruction
|
| 60 |
|