changed model
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def build_structured_prompt(user_prompt, repo_data=None):
|
|
| 39 |
"tone": "Professional yet personal",
|
| 40 |
"style": "Storytelling, informative, slightly persuasive",
|
| 41 |
"length": "Long-form (150–300 words)",
|
| 42 |
-
"hashtags": "Add
|
| 43 |
"extras": [
|
| 44 |
"Include a strong opening hook",
|
| 45 |
"End with a call to action (e.g., inviting engagement or collaboration)",
|
|
@@ -79,9 +79,9 @@ def generate_post(topic, user_prompt):
|
|
| 79 |
structured_prompt = build_structured_prompt(user_prompt, repo_data)
|
| 80 |
|
| 81 |
payload = {
|
| 82 |
-
"model": "
|
| 83 |
"messages": [
|
| 84 |
-
{"role": "system", "content": "You are an expert social media strategist for
|
| 85 |
{"role": "user", "content": structured_prompt}
|
| 86 |
]
|
| 87 |
}
|
|
|
|
| 39 |
"tone": "Professional yet personal",
|
| 40 |
"style": "Storytelling, informative, slightly persuasive",
|
| 41 |
"length": "Long-form (150–300 words)",
|
| 42 |
+
"hashtags": "Add 10–15 trending tech-related hashtags automatically they should gain more profile views and new connection",
|
| 43 |
"extras": [
|
| 44 |
"Include a strong opening hook",
|
| 45 |
"End with a call to action (e.g., inviting engagement or collaboration)",
|
|
|
|
| 79 |
structured_prompt = build_structured_prompt(user_prompt, repo_data)
|
| 80 |
|
| 81 |
payload = {
|
| 82 |
+
"model": "nvidia/nemotron-nano-9b-v2:free",
|
| 83 |
"messages": [
|
| 84 |
+
{"role": "system", "content": "You are an expert social media strategist for projects."},
|
| 85 |
{"role": "user", "content": structured_prompt}
|
| 86 |
]
|
| 87 |
}
|