Update app3.py
Browse files
app3.py
CHANGED
|
@@ -8,11 +8,11 @@ st.title("🔗 LinkedIn Test Post Generator two options")
|
|
| 8 |
def generate_linkedin_post(topic):
|
| 9 |
# Enhanced prompt with additional context for better post generation
|
| 10 |
prompt = (
|
| 11 |
-
f"Create a LinkedIn post about {topic} that grabs attention and makes people chuckle. Here's how:
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
***Offer a solution (with a twist):** Provide a real tip but phrase it unexpectedly (e.g., 'Turns out, the answer lies in [insightful tip] - and checking for rogue felines.')
|
| 15 |
-
***Tone:** Confident, slightly tongue-in-cheek. Aim for a knowing smile, not a belly laugh."
|
| 16 |
llm = OpenAI(temperature=0.7, openai_api_key=st.secrets["OPENAI_API_KEY"])
|
| 17 |
response = llm(prompt)
|
| 18 |
return response
|
|
|
|
| 8 |
def generate_linkedin_post(topic):
|
| 9 |
# Enhanced prompt with additional context for better post generation
|
| 10 |
prompt = (
|
| 11 |
+
f"Create a LinkedIn post about {topic} that grabs attention and makes people chuckle. Here's how:" +
|
| 12 |
+
f"Start with a relatable pain point:** Something the audience groans about inwardly (e.g., 'Ever spend hours on a task that should take minutes?')"+
|
| 13 |
+
f"Agitate with a pinch of absurdity:** Exaggerate the pain point in a slightly ridiculous way (e.g., '...only to discover your cat was sitting on the keyboard the whole time.')"+
|
| 14 |
+
f"***Offer a solution (with a twist):** Provide a real tip but phrase it unexpectedly (e.g., 'Turns out, the answer lies in [insightful tip] - and checking for rogue felines.')"+
|
| 15 |
+
f"***Tone:** Confident, slightly tongue-in-cheek. Aim for a knowing smile, not a belly laugh."
|
| 16 |
llm = OpenAI(temperature=0.7, openai_api_key=st.secrets["OPENAI_API_KEY"])
|
| 17 |
response = llm(prompt)
|
| 18 |
return response
|