Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def build_structured_prompt(user_prompt, repo_data=None):
|
|
| 40 |
"tone": "authentic, reflective, inspiring, with storytelling elements.",
|
| 41 |
"style": "Storytelling, informative, slightly persuasive",
|
| 42 |
"view": "Make sure first 200-250 words are strong because they are the first visible ones make them in a way they attract more views",
|
| 43 |
-
"length": "Long-form (
|
| 44 |
"format": "Give output as txt for easy copy pasting",
|
| 45 |
"additional": "Use Bulletins for Representing Tech Stacks and Skills",
|
| 46 |
"hashtags": "Add 15-20 trending tech-related hashtags with the project related automatically they should gain more profile views and new connection",
|
|
@@ -54,19 +54,27 @@ def build_structured_prompt(user_prompt, repo_data=None):
|
|
| 54 |
},
|
| 55 |
"sample_output": {
|
| 56 |
"title": "✨ From Chaos to Clarity: How I Built an AI Research Assistant That Simplifies Learning 🌌",
|
| 57 |
-
"body":
|
| 58 |
-
"Ever felt overwhelmed by mountains of research papers and endless documentation? I definitely have, and that frustration sparked an idea.",
|
| 59 |
-
"
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
"
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
"cta": "What’s a challenge you’ve faced in your research or projects? I’d love to hear your thoughts and experiences!",
|
| 71 |
"hashtags": [
|
| 72 |
"#AIResearch", "#FastAPI", "#LangGraph", "#OpenRouter", "#MachineLearning",
|
|
@@ -149,7 +157,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 149 |
)
|
| 150 |
|
| 151 |
generate_btn = gr.Button("✨ Generate LinkedIn Post")
|
| 152 |
-
output = gr.Textbox(label="Generated LinkedIn Post", lines=
|
| 153 |
|
| 154 |
generate_btn.click(fn=generate_post, inputs=[topic, user_prompt], outputs=output)
|
| 155 |
|
|
|
|
| 40 |
"tone": "authentic, reflective, inspiring, with storytelling elements.",
|
| 41 |
"style": "Storytelling, informative, slightly persuasive",
|
| 42 |
"view": "Make sure first 200-250 words are strong because they are the first visible ones make them in a way they attract more views",
|
| 43 |
+
"length": "Long-form (1000 - 1200 words)",
|
| 44 |
"format": "Give output as txt for easy copy pasting",
|
| 45 |
"additional": "Use Bulletins for Representing Tech Stacks and Skills",
|
| 46 |
"hashtags": "Add 15-20 trending tech-related hashtags with the project related automatically they should gain more profile views and new connection",
|
|
|
|
| 54 |
},
|
| 55 |
"sample_output": {
|
| 56 |
"title": "✨ From Chaos to Clarity: How I Built an AI Research Assistant That Simplifies Learning 🌌",
|
| 57 |
+
"body": {
|
| 58 |
+
"hook": "Ever felt overwhelmed by mountains of research papers and endless documentation? I definitely have, and that frustration sparked an idea.",
|
| 59 |
+
"core_idea": [
|
| 60 |
+
"Built the AI Research Assistant API — a small experiment that grew into a powerful tool for students, developers, and researchers.",
|
| 61 |
+
"Transforms raw research into clear, actionable insights in seconds.",
|
| 62 |
+
"Integrates FastAPI for fast APIs, LangGraph to map workflows, and OpenRouter’s GLM-4.5-air for intelligent summarization.",
|
| 63 |
+
"Dynamic web search via Tavily to fetch relevant research automatically."
|
| 64 |
+
],
|
| 65 |
+
"skills_learned": [
|
| 66 |
+
"Resilience and problem-solving through debugging complex workflows.",
|
| 67 |
+
"API design and integration with AI models.",
|
| 68 |
+
"Prompt engineering and workflow orchestration using LangGraph.",
|
| 69 |
+
"Project structuring and creating scalable, user-friendly tools."
|
| 70 |
+
],
|
| 71 |
+
"impact": "Seeing others try the API and immediately understand complex research was the most rewarding part. It reminded me that even small projects can create big impacts when built thoughtfully.",
|
| 72 |
+
"advice": "If you’re curious about building something impactful, here’s my advice:\n1️⃣ Identify a real problem you’ve faced.\n2️⃣ Combine the tools and skills you’re learning to prototype quickly.\n3️⃣ Share your solution and gather feedback — it’s the fastest way to improve. Innovation is less about the size of the project and more about the clarity it brings to others.",
|
| 73 |
+
"links": {
|
| 74 |
+
"github_repo": "<INSERT GITHUB REPO HERE>",
|
| 75 |
+
"live_demo": "<INSERT LIVE DEMO LINK HERE>"
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
"cta": "What’s a challenge you’ve faced in your research or projects? I’d love to hear your thoughts and experiences!",
|
| 79 |
"hashtags": [
|
| 80 |
"#AIResearch", "#FastAPI", "#LangGraph", "#OpenRouter", "#MachineLearning",
|
|
|
|
| 157 |
)
|
| 158 |
|
| 159 |
generate_btn = gr.Button("✨ Generate LinkedIn Post")
|
| 160 |
+
output = gr.Textbox(label="Generated LinkedIn Post", lines=15)
|
| 161 |
|
| 162 |
generate_btn.click(fn=generate_post, inputs=[topic, user_prompt], outputs=output)
|
| 163 |
|