JeCabrera commited on
Commit
ac7c34f
·
verified ·
1 Parent(s): f29535c

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +4 -1
prompts.py CHANGED
@@ -322,7 +322,10 @@ def create_fb_ad_instruction(target_audience, product, selected_formula, selecte
322
 
323
  # Add this to your verification criteria at the end of the instruction
324
  policy_checklist = get_policy_checklist()
325
- policy_checks = "\n".join([f"{i+18}. {check}" for i, check in enumerate(policy_checklist)])
 
 
 
326
 
327
  # Then add this to your verification section
328
  After creating your ad, verify it meets these criteria:
 
322
 
323
  # Add this to your verification criteria at the end of the instruction
324
  policy_checklist = get_policy_checklist()
325
+ # Here's the fix for the enumeration issue
326
+ policy_checks = "\n".join([f"{i+1}. {check}" for i, check in enumerate(policy_checklist)])
327
+ # OR if you want to start from 18 as the original code intended:
328
+ # policy_checks = "\n".join([f"{idx+18}. {check}" for idx, check in enumerate(policy_checklist)])
329
 
330
  # Then add this to your verification section
331
  After creating your ad, verify it meets these criteria: