This is a web application that converts PDF files into flashcards using Natural Language Processing (NLP).
The backend is primarily coded in Python using the FastAPI library to handle API endpoints. It utilizes Hugging Face API models to process text. As of the last update to this README file, the following models are used:
mrm8488/t5-base-finetuned-question-generation-apdeepset/roberta-large-squad2The frontend is built with basic HTML and CSS, with JavaScript handling:
pdfParser.pyPyPDF2 to extract text directly from a provided PDF file.regex library to format text for better processing by the question generation model.main.py and utilized in the initial asynchronous function handling PDF input.chunking.pyNLTK library to accurately tokenize and split text to prevent sentence fragmentation.main.pychunking.py and pdfParser.py to process the extracted text.This application has a Docker setup, making it easy to run with Docker Desktop. Follow these steps:
docker-compose up --build
http://localhost:8080
This is a web application that converts PDF files into flashcards using Natural Language Processing (NLP).
The backend is primarily coded in Python using the FastAPI library to handle API endpoints. It utilizes Hugging Face API models to process text. As of the last update to this README file, the following models are used:
mrm8488/t5-base-finetuned-question-generation-apdeepset/roberta-large-squad2The frontend is built with basic HTML and CSS, with JavaScript handling:
pdfParser.pyPyPDF2 to extract text directly from a provided PDF file.regex library to format text for better processing by the question generation model.main.py and utilized in the initial asynchronous function handling PDF input.chunking.pyNLTK library to accurately tokenize and split text to prevent sentence fragmentation.main.pychunking.py and pdfParser.py to process the extracted text.This application has a Docker setup, making it easy to run with Docker Desktop. Follow these steps:
docker-compose up --build
http://localhost:8080