DrishtiSharma commited on
Commit
2981bef
Β·
verified Β·
1 Parent(s): dffd28c

Update post_generator.py

Browse files
Files changed (1) hide show
  1. post_generator.py +2 -2
post_generator.py CHANGED
@@ -52,12 +52,12 @@ def generate_post(length, language, tag, selected_tone=None):
52
  try:
53
  closing_line = generate_closing_line(language, tag, selected_tone)
54
  # Append the closing line with hashtags
55
- post_content += f"\n\n{closing_line}"
56
  except Exception as e:
57
  # Fallback in case of LLM failure
58
  post_content += f"\n\nThank you for reading. Your feedback is valued! πŸ™Œ"
59
 
60
- return post_content # Ensure the returned content has hashtags only from the LLM
61
 
62
 
63
  def get_prompt(length, language, tag):
 
52
  try:
53
  closing_line = generate_closing_line(language, tag, selected_tone)
54
  # Append the closing line with hashtags
55
+ post_content += f"\n\n{closing_line}\n\n"
56
  except Exception as e:
57
  # Fallback in case of LLM failure
58
  post_content += f"\n\nThank you for reading. Your feedback is valued! πŸ™Œ"
59
 
60
+ return post_content
61
 
62
 
63
  def get_prompt(length, language, tag):