Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- 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 |
-
|
|
|
|
|
|
|
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:
|