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
ด้วยคีย์ API ของคุณบน 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