{"id":20492424,"url":"https://github.com/letsdoitbycode/text-summarization-webapp","last_synced_at":"2026-04-19T15:34:22.971Z","repository":{"id":253211279,"uuid":"842820921","full_name":"letsdoitbycode/Text-Summarization-Webapp","owner":"letsdoitbycode","description":"This Flask application utilizes the Pegasus Transformer model by Google for conditional text summarization. It allows users to input large text and receive a concise summary, making it ideal for processing articles, reports, or any long-form text data.","archived":false,"fork":false,"pushed_at":"2024-11-02T13:32:23.000Z","size":54761,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T16:52:46.232Z","etag":null,"topics":["cuda-support","flask-application","natural-language-processing","pegasus-transformer","python","text-summarization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letsdoitbycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-15T06:49:48.000Z","updated_at":"2024-11-02T13:32:26.000Z","dependencies_parsed_at":"2024-11-15T17:43:22.993Z","dependency_job_id":null,"html_url":"https://github.com/letsdoitbycode/Text-Summarization-Webapp","commit_stats":null,"previous_names":["letsdoitbycode/text-summariser-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/letsdoitbycode/Text-Summarization-Webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdoitbycode%2FText-Summarization-Webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdoitbycode%2FText-Summarization-Webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdoitbycode%2FText-Summarization-Webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdoitbycode%2FText-Summarization-Webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsdoitbycode","download_url":"https://codeload.github.com/letsdoitbycode/Text-Summarization-Webapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsdoitbycode%2FText-Summarization-Webapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["cuda-support","flask-application","natural-language-processing","pegasus-transformer","python","text-summarization"],"created_at":"2024-11-15T17:29:06.246Z","updated_at":"2026-04-19T15:34:22.951Z","avatar_url":"https://github.com/letsdoitbycode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text Summarization Project with Flask and Pegasus Transformer\n\nThis Flask application utilizes the Pegasus Transformer model by Google for conditional text summarization. It allows users to input large text and receive a concise summary, making it ideal for processing articles, reports, or any long-form text data.\n\n### Features\n- Text Summarization: Uses the PegasusForConditionalGeneration model to generate a summary for the input text.\n- CUDA Optimization: Leverages CUDA if available, allowing for faster summarization on GPU devices.\n- Responsive Web Interface: The application provides a user-friendly interface with index.html for input and output.html to display results.\n\n### How It Works\n- Input: The user submits text via a form on the home page.\n- Text Tokenization: The input text is tokenized and encoded for the Pegasus model.\n- Summarization: The model generates a summary with specified minimum and maximum length constraints.\n- Output: The summary is decoded and displayed on the output page.\n\n### Requirement \n- Python \u003e= 3.10\n- Flask\n- Transformers\n- gunicorn\n- sentencepiece\n- torch\n\n### Installation\n1. Clone the repository\n   ```sh\n   git clone https://github.com/letsdoitbycode/Text-Summarization-Webapp.git\n   cd Text-Summarization-Webapp\n   ```\n\n3. Create a virtual environment and activate it:\n   ```sh\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   ```\n\n3. Install the required packages:\n   ```sh\n   pip install flask transformers torch sentencepiece gunicorn\n   pip install requirements.txt   #else you can do this directly\n   ```\n   \n4. Run the Flask app:\n    ```sh\n    python app.py\n    ```\n\n### Project Structure\n```plaintext\nText-Summarization-Webapp/\n│\n├── templates/\n│   └── index.html          # HTML file for text input\n│   └── output.html         # Output file for a output of summarisation\n├── venv                    # Virtual environment\n├── README.md               # This README file\n├── app.py                  # Main Flask application\n└── requirements.txt        # requirement file\n\n\n```\n\n## Contributing\nContributions are welcome! Please open an issue or submit a pull request for any changes or improvements.\n\n\n## DEMP APPLICATION\n----\n\n![Screenshot (12)](https://github.com/user-attachments/assets/a7b72e3d-6fa9-418c-9524-87b3f663f4b5)\n\n![Screenshot 2024-11-02 190135](https://github.com/user-attachments/assets/3105b48d-b395-4996-98f1-16632f2fc715)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdoitbycode%2Ftext-summarization-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsdoitbycode%2Ftext-summarization-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsdoitbycode%2Ftext-summarization-webapp/lists"}