This Laravel application allows users to input a link to an article, fetches and scrapes the article content, summarizes it using OpenAI's GPT models, and displays the summary on the user interface.
Clone the repository:
git clone https://github.com/Omar-Wael/article-summarizer.git cd article-summarizer
Install dependencies:
composer install
Set up your environment:
Copy the .env.example
file to .env
:
cp .env.example .env
Generate an application key:
php artisan key:generate
Set your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key
Configure the CA certificate (for Windows users):
If you encounter SSL certificate issues, download the CA bundle from cURL's website and set the curl.cainfo
directive in your php.ini
file:
curl.cainfo="C:\path\to\cacert.pem"
Run the development server:
php artisan serve
Access the application:
Open your web browser and go to http://localhost:8000.
Summarize an article:
Contributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT license.
There are no datasets linked
There are no datasets linked