{"id":22432053,"url":"https://github.com/akashkobal/blog-generation-platform","last_synced_at":"2025-08-01T12:33:34.893Z","repository":{"id":227775046,"uuid":"772236866","full_name":"AkashKobal/Blog-Generation-Platform","owner":"AkashKobal","description":"This repository contains code for generating blog content using the LLama 2 language model. It integrates with Streamlit for easy user interaction. Simply input your blog topic, desired word count, and writing style to generate engaging blog content.","archived":false,"fork":false,"pushed_at":"2024-04-03T16:50:41.000Z","size":467,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-27T01:56:48.872Z","etag":null,"topics":["akash","akashkobal","artificialintelligence","blog-generation-platform","bloggeneration","github","huggingface","huggingface-models","llama","llama2","machinelearning","naturallanguageprocessing","nlp","nlp-machine-learning","python","python3","streamlit","streamlit-webapp","textgeneration"],"latest_commit_sha":null,"homepage":"https://theakash.co.in","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AkashKobal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T19:51:31.000Z","updated_at":"2025-06-14T09:31:15.000Z","dependencies_parsed_at":"2024-04-03T17:58:41.741Z","dependency_job_id":null,"html_url":"https://github.com/AkashKobal/Blog-Generation-Platform","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"1efe3f2068f8249af0f1d8843e0798a73f0c4f5b"},"previous_names":["akashkobal/blog-generation-platform-"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AkashKobal/Blog-Generation-Platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashKobal%2FBlog-Generation-Platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashKobal%2FBlog-Generation-Platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashKobal%2FBlog-Generation-Platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashKobal%2FBlog-Generation-Platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AkashKobal","download_url":"https://codeload.github.com/AkashKobal/Blog-Generation-Platform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashKobal%2FBlog-Generation-Platform/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268223278,"owners_count":24215711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["akash","akashkobal","artificialintelligence","blog-generation-platform","bloggeneration","github","huggingface","huggingface-models","llama","llama2","machinelearning","naturallanguageprocessing","nlp","nlp-machine-learning","python","python3","streamlit","streamlit-webapp","textgeneration"],"created_at":"2024-12-05T22:10:24.700Z","updated_at":"2025-08-01T12:33:34.510Z","avatar_url":"https://github.com/AkashKobal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog-Generation-Platform-With-LLAMA\n\n## Description:\n### This repository contains code for generating blog content using the LLama 2 language model. It integrates with Streamlit for easy user interaction. Simply input your blog topic, desired word count, and writing style to generate engaging blog content.\n \n### This GitHub code demonstrates the use of the LLama 2 model for generating blog content using Streamlit. It imports the CTransformers module from langchain.llms and langchain_community.llms for language model integration. The get_response function prompts the user to input a blog topic, number of words, and style, then generates a response using the LLama 2 model. Streamlit is used to create a user-friendly interface for input and output.\n\n### The LLama 2 model is specified with its model file and type, along with configuration parameters such as max_new_tokens and temperature for text generation.\n\n### Streamlit is configured to create a centered layout with collapsed initial sidebar state. Users can input the blog topic, number of words, and select the style of writing (Research, Creative, Technical) before generating the response.\n\n### Finally, upon clicking the \"Generate\" button, the model generates a response based on the provided inputs and displays it using Streamlit.\n\n## 🚀 Features:\n### - Easy-to-use interface with Streamlit\n### - Integration with LLama 2 model for generating diverse and context-aware blog content\n### - Customize writing style for Research, Creative, or Technical topics\n\n\n\n## _Example_\n![alt text](https://github.com/AkashKobal/Blog-Generation-Platform/blob/main/Screenshot%20(324).png)\n\n## Download requirements:\n`sentence-transformers`\n`uvicorn`\n`ctransformers`\n`langchain`\n`python-box`\n`streamlit`\n\n### Download model from [Hugging Face](https://huggingface.co/localmodels/Llama-2-7B-Chat-ggml/tree/main) 👈\n\n![alt text](https://github.com/AkashKobal/Blog-Generation-Platform/blob/main/hg.png)\n\n### Steps to run\n\n1. **Import Statements**:\n   - You import the `CTransformers` module from both `langchain.llms` and `langchain_community.llms`. Ensure that you need both imports and that they are correctly referencing the desired functionality.\n```python !\npip install langchain\n```\n```python\npip install langchain_community\n```  \n```python \npip install CTransformers\n```\n```python \npip install streamlit\n```\n\n\n\n\n2. **Function Definition (`get_response`)**:\n   - This function is designed to retrieve a response from the LLama 2 model based on user inputs such as the blog topic, number of words, and writing style.\n   - It initializes the LLama 2 model with the specified parameters, including the model file, model type, and configuration options such as `max_new_tokens` and `temperature`.\n   - You define a prompt template to guide the model in generating the blog content based on the provided inputs.\n   - The function then generates a response from the LLama 2 model using the prompt template and returns it.\n\n3. **Streamlit Setup**:\n   - You configure the Streamlit page with a title and layout settings.\n   - The user is presented with input fields to enter the blog topic, number of words, and select the writing style (e.g., Research, Creative, Technical).\n   - Upon clicking the \"Generate\" button, the function `get_response` is called with the provided inputs, and the generated response is displayed on the Streamlit interface.\n\n4. **Final Response**:\n   - The generated response from the LLama 2 model is displayed in the Streamlit interface for the user to review.\n   - Run the command in terminal\n   - ```txt\n      streamlit run webapp.py\n      ```\n\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashkobal%2Fblog-generation-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashkobal%2Fblog-generation-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashkobal%2Fblog-generation-platform/lists"}