DEV Community

Cover image for AI-Pdf Summarizer
Kaku-g
Kaku-g

Posted on

2

AI-Pdf Summarizer

What I built ?

So, with AI tools spreading like a fire with the advent of Chat-GPT. I thought to make one app myself but ' without using OpenAI's api ' as it is not econmically feasible for longer tasks. So I decided to move forward with HuggingFace model which is open source and can be integrated easily with python.

Category Submission:

The app is part of Dev X Github hackathon under the category
" Wacky Wildcards "

App Link

The app is deployed on Web
Can be setup locally by cloning the repo

Screenshots

Ai-pdf-summarizer web app image

Description

So lets talk about how to use the app or What else are we waiting for! . The app takes in PDF as an input from the user and produces
the summary of the pdf in output as PDF. It is built using hugging face pre-trained model which is implemented using transformers.
The web app is built using flask (a python framework) and various libraries for working with PDF. The app speed can be improved further by using the capabilities of GPU present in our system. So running the app on machines having GPU, speeds up the process.

How to install Locally?
The app can be installed locally by following the instructions given in the github repo which can be found below.

Link to Source Code

The source code can be found on Repo

Permissive License

The repository/app comes under MIT License.
For more information about the license you can visit License

Background story :)

So I had my exams and I needed to read the whole PDF, but due to the time constraint it was not feasible to cover whole document in one sitting so decided to make an app for summarizing the contents of PDF ;) .As most of the tools I found on the internet were paid and the results were not promising, so I thought to give it a try.

How I built it <></>

It was built using hugging face transformer model, so learned to implement it using python, also worked with PDF files using various libraries. Learned flask along the way as my primary working stack was MERN. Most of the things were new and I had to overcome many challenges, but it was worth it :). Overall it was an exciting and fun experience to work on such a project.
The github actions was used to check all the requirements and the code by creating tests on every push. So continuous testing and integration was implemented using that.
Codespaces was used to run the code on the cloud using ubuntu VM, and to test the required changes quickly wihtout going through the code editor again & again.

Additional Resources/Info

Huggingface model for text summarization

Github actions

Github codespaces

PS- The app can still be improved a lot on design and performance basis, so feel free to create and raise the pull request. Keep coding.

Image of Wix Studio

2025: Your year to build apps that sell

Dive into hands-on resources and actionable strategies designed to help you build and sell apps on the Wix App Market.

Get started

Top comments (0)

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay