Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 61 |
-
"
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
| 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))
|