Update app.py
Browse files
app.py
CHANGED
|
@@ -52,8 +52,8 @@ def build_poem_prompt(voice_instruction, constraint_instruction, format_type, to
|
|
| 52 |
# Combined, prioritized instruction block for maximum clarity
|
| 53 |
full_instruction = (
|
| 54 |
f"Instruction:\n"
|
| 55 |
-
f"{
|
| 56 |
-
f"{
|
| 57 |
f"Write the {format_type} about this topic: '{topic}'.\n\n"
|
| 58 |
)
|
| 59 |
return full_instruction
|
|
|
|
| 52 |
# Combined, prioritized instruction block for maximum clarity
|
| 53 |
full_instruction = (
|
| 54 |
f"Instruction:\n"
|
| 55 |
+
f"{voice_instruction}\n"
|
| 56 |
+
f"{constraint_instruction} 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
|