Article Summarizer with Gemini API
1.0.0
这是用户可以开始总结文章的过程的主页。
在此页面上,用户可以输入他们要汇总的文章的URL。
提交URL后,汇总的文章显示在此页面上。
克隆存储库:
git clone https://github.com/AbdooMohamedd/Article-Summarizer-with-Gemini-API.git
安装所需的软件包:
pip install -r requirements.txt
生成一个API密钥:访问Google AI Studio并生成您的API密钥。
设置GEMINI_API_KEY
环境变量:
在Windows上:
set GEMINI_API_KEY=your_api_key_here
GEMINI_API_KEY
。在MacOS/Linux上:
export GEMINI_API_KEY=your_api_key_here
~/.bashrc
, ~/.bash_profile
或~/.zshrc
: export GEMINI_API_KEY=your_api_key_here
source ~ /.bashrc # or ~/.bash_profile or ~/.zshrc
导航到项目文件夹:
cd path/to/your/project
运行应用程序:
python app.py