Kezovic commited on
Commit
4f72738
·
verified ·
1 Parent(s): 5d9660d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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"You are a highly disciplined creative writer. {voice_instruction} "
55
- f"You must write a {format_type} about '{topic}'.\n"
56
- f"STRICT FORMAT RULE: {constraint_instruction}\n"
57
- f"Your output must contain ONLY the poem, nothing else. Do NOT include a title.\n"
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