This is the home page where users can start the process of summarizing an article.
On this page, users can enter the URL of the article they want to summarize.
After submitting the URL, the summarized article is displayed on this page.
-
Clone the repository:
git clone https://github.com/AbdooMohamedd/Article-Summarizer-with-Gemini-API.git
-
Install the required packages:
pip install -r requirements.txt
-
Generate an API key: Go to Google AI Studio and generate your API key.
-
Set up the
GEMINI_API_KEY
environment variable:-
On Windows:
- Open Command Prompt and run:
set GEMINI_API_KEY=your_api_key_here
- For a permanent setup:
- Search for "Environment Variables" in the Start Menu.
- Click Edit the system environment variables > Environment Variables.
- Add a new variable
GEMINI_API_KEY
with your API key.
- Open Command Prompt and run:
-
On macOS/Linux:
- Open Terminal and run:
export GEMINI_API_KEY=your_api_key_here
- For a permanent setup, add the line to
~/.bashrc
,~/.bash_profile
, or~/.zshrc
:export GEMINI_API_KEY=your_api_key_here
- Apply the changes:
source ~/.bashrc # or ~/.bash_profile or ~/.zshrc
- Open Terminal and run:
-
-
Navigate to the project folder:
cd path/to/your/project
-
Run the application:
python app.py