Skip to content

This project demonstrates text summarization by scraping information from url of a website or we can manuaaly enter the text and obtain the summary

Notifications You must be signed in to change notification settings

Kunal-Varma/Text-Summarizer-webapp

Repository files navigation

Text Summarizer NLP Project

About

A Django web app for summarizing the text, developed using NLP algorithms, Django and deployed using Dockers on Heroku. Text Ranking Algorithm and cosine similarity was used to summarize the text. Python version 3.6 was used for this project. All the requirements to run the project can be found at [requirements.txt]

Steps to run the web application on your local host

Step-1 Download all the files from the repository.
Step-2 Open command prompt and run the following command to install all the dependencies.

pip install -r requirements.txt

Step-3 After successfull installation of all the dependencies, in the command prompt, get into the directory containing manage.py file and run the following command.

 python manage.py runserver

That's it you can see your website running at localhost.

Steps to run the dockorized web application on local host

Step-1 Download the docker desktop based on you windows version from the official website of Dockers.
Step-2 Create your docker account at hub.docker.com
Step-3 Make sure that you have downloaded the Dockerfile and docker-compose.yml files and open the command prompt in that directory.
Step-4 Run these following commands in the command prompt:

 docker-compose up --build

That's it you can see your website running at localhost.

Steps to deploy the web application on Heroku using Dockers

Step-1 Download the Heroku CLI and Docker desktop based on you windows version from the official website of Dockers.
Step-2 Create your heroku account at www.heroku.com and docker account at hub.docker.com
Step-3 Make sure that you have downloaded the [Dockerfile]) files and open the command prompt in that directory.
Step-4 Run these following commands in the command prompt:
Login to your docker account.

 docker login

Building the Image.

 docker build -t enter_any_tag_name .

Log in to your Heroku account.

 heroku login

Login to your Heroku container.

 heroku container:login

Creating a app in Heroku.

 heroku create enter_app_name

Tag the heroku web app with docker.

 docker tag previously_entered_tagname registry.heroku.com/previously_created_app_name/web

Pushing all files into Heroku.

 docker push registry.heroku.com/previously_created_app_name/web

Releasing the web application.

 heroku container:release web --app previously_created_app_name

That's it you can see your website running at your_app_name.herokuapp.com.

About

This project demonstrates text summarization by scraping information from url of a website or we can manuaaly enter the text and obtain the summary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published