Alpha108 commited on
Commit
5393a79
·
verified ·
1 Parent(s): 1a9f5da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -57,9 +57,11 @@ with tabs[0]:
57
  fixed = quick_quality_fix(clean, want_hashtags=add_hashtags, allow_emoji=include_emoji)
58
  if fixed is None:
59
  corrective = (
60
- prompt + "\n\nRegenerate as 4–6 short lines, each under 18 words, "
 
 
61
  "include one concrete metric or date, "
62
- f"{'max 1 emoji' if include_emoji else 'no emojis'}, "
63
  f"{'1–2 niche hashtags at the end' if add_hashtags else 'no hashtags'}."
64
  )
65
  raw2 = generate_post(corrective, model, temperature, top_p, max_tokens)
 
57
  fixed = quick_quality_fix(clean, want_hashtags=add_hashtags, allow_emoji=include_emoji)
58
  if fixed is None:
59
  corrective = (
60
+ + f"\n\nRegenerate a full LinkedIn post around {words} words total, "
61
+ "structured in 4–6 short paragraphs (each 2–3 lines). "
62
+ "Keep it scannable, professional, and engaging. "
63
  "include one concrete metric or date, "
64
+ f"{'max 5 emoji' if include_emoji else 'no emojis'}, "
65
  f"{'1–2 niche hashtags at the end' if add_hashtags else 'no hashtags'}."
66
  )
67
  raw2 = generate_post(corrective, model, temperature, top_p, max_tokens)