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

Update app.py

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