This is my nlp project where i have used huggingface tranformers text summarizer api to get the text summaries as an output.The main motive to build this application is to understand how the transformer actually works and how we can used state of the art model apis to get or list out the summary of the text data.
- First clone my repo using git clone command
- Unzip and open folder in vscode
- Now visit to https://huggingface.co/ and make an account first
- After login go to here https://huggingface.co/facebook/bart-large-cnn and on right side click on deploy and you will get an option called
Accelerated Inference
click on that. - You will get an api key copy these variable for example: headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"} with api key and replace with my code.
- Thats it now fire up terminal and type
python app.py
7.Enjoy in localhost i.e http://127.0.0.1
If you face any problem in this contact me https://rohanpatankar.netlify.app/
Thankyou