From aabc989e1cebf7dc0fde13c20a0ecb9b034ed9e5 Mon Sep 17 00:00:00 2001 From: Shane Date: Sat, 3 May 2025 13:59:01 +1000 Subject: [PATCH] remove cta --- foodie_hooks.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/foodie_hooks.py b/foodie_hooks.py index fb4e763..8ef7379 100644 --- a/foodie_hooks.py +++ b/foodie_hooks.py @@ -49,21 +49,9 @@ def get_viral_share_prompt(article_title, content): temperature=0.9 ) share_prompt = response.choices[0].message.content.strip() - # Remove any leading or trailing quotation marks share_prompt = share_prompt.strip('"\'') logging.info(f"Generated viral share prompt: {share_prompt}") return share_prompt except Exception as e: logging.error(f"Viral share prompt generation failed: {e}") - return "Love This? Share It" - -def select_best_cta(title, content, post_url=None): - cta_templates = [ - "Love This Foodie Find Hit That Like Button", - "Think This Dish Is a Game Changer Show Some Love With a Like", - "Hungry for More Foodie Insights Follow Us for the Latest Trends", - "Dont Miss Out on Foodie Updates Follow Us Today" - ] - - cta = random.choice(cta_templates) - return cta \ No newline at end of file + return "Love This? Share It" \ No newline at end of file