https://github.com/mustafa-kamel/openai-service
Flask Summarizer: Utilize Flask and OpenAI to summarize lengthy blogs effortlessly.
https://github.com/mustafa-kamel/openai-service
api flask natural-language-processing openai python summerization
Last synced: about 1 month ago
JSON representation
Flask Summarizer: Utilize Flask and OpenAI to summarize lengthy blogs effortlessly.
- Host: GitHub
- URL: https://github.com/mustafa-kamel/openai-service
- Owner: mustafa-kamel
- License: mit
- Created: 2024-01-28T22:41:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T12:59:54.000Z (over 1 year ago)
- Last Synced: 2025-02-20T13:42:44.286Z (over 1 year ago)
- Topics: api, flask, natural-language-processing, openai, python, summerization
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Summarizer
Flask Summarizer is a Python application that utilizes Flask and OpenAI to summarize lengthy blogs into concise paragraphs with ease.
## Features
- Summarize lengthy blog posts into brief, insightful paragraphs.
- Integration with OpenAI for advanced natural language processing capabilities.
- Simple HTTP request interface for easy interaction.
- Customizable summarization parameters.
- Robust error handling and response validation.
- Lightweight and efficient Flask framework for deployment and scalability.
## Installation
1. Clone the repository:
```
git clone git@github.com:mustafa-kamel/openai-service.git
```
2. Install dependencies:
```
pip install -r requirements.txt
```
3. Set up your OpenAI API key by replacing `'YOUR_API_KEY'` in the code with your actual key.
## Usage
To use the Flask Summarizer API, follow these steps:
1. Run the Flask application:
```
python app.py
```
2. Send a POST request to the `/summarize-blog` endpoint with a JSON payload containing the blog text.
Example:
```
curl -X POST -H "Content-Type: application/json" -d '{"blog_text": "Replace this with your blog text."}' http://localhost:5000/summarize-blog
```