git clone https://github.com/Pankaj-SinghR/Ekatra-Hackathon-Project.git
cd Ekatra-Hackathon-Project/Ekatra-Hackathon/
echo "YOUR API KEY GOES HERE" > API_KEY
cd ..
python3 -m venv env
env\Scripts\activate.bat
source env/bin/activate
pip install -r requirements.txt
cd Ekatra-Hackathon
python3 main.py -h
- OUTPUT
usage: main.py [-h] -input INPUT -type TYPE
Python CLI For Text summarization (Ekatra-Hackathon)
optional arguments:
-h, --help show this help message and exit
-input INPUT -input <URL|Path> Provide file URL/Path
-type TYPE -type <OPTION> OPTIONS [t]ext file | [p]df file | [w]eb article link | [y]outube link
python3 main.py -input ./Data/text_file.txt -type t
python3 main.py -input ./Data/pdf_file.pdf -type p
let say page number is 45
python3 main.py -input ./Data/pdf_file.pdf-45 -type p
let say we want summary from page number 36 to 50
python3 main.py -input ./Data/pdf_file.pdf-36-50 -type p
python3 main.py -input <pass your web article link here> -type w
python3 main.py -input <pass your youtube video link here> -type y
python3 audio.py
OUTPUT:
output_audio.mp3