DocuCrunch is a web app that enables users to upload PDF documents or paste raw text in order to receive a summarised version.
The app leverages two AI models:
- A121: used for summarising articles
- Hugging Face model : used for summarising meeting minutes
Front-end(React)
- Handles user interaction, PDF upload, and displays summarised text.
Back-end(Spring/Python)
- Provides REST API endpoints for text extraction and summarisation.
- Makes API calls to the AI models (A121 and Hugging Face)
- Node.js
- Java11+
- Maven
- Clone the repository:
https://github.com/Selamkd/docuCrunch.git
- Change directory to docucrunch-front-end:
cd front-end/docucrunch-front-end
- Run the application:
npm run dev
- Change directory to DocuCrunchBackEnd:
cd back-end/DocuCrunchBackEnd
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- Summarise text
- Endpoint: /api/summarise
- Method: POST
- Content-Type: application/json
Takes user input and returns the summarised content
The application uses a predefined CORS configuration to allow requests from the front-end. You can adjust the allowed origins (e.g., localhost addresses) in the configuration file.
- File: src/main/java/com/sparta/docucrunchbackend/config/CorsConfig.java
The models are configured in the service layer and can be adjusted according to the specific use case. The models require authentication tokens, which are stored in the application.properties file. Users must provide their own tokens by updating the relevant properties in this file before running the application.
📫 If you come across any bugs, please don't hesitate to open an issue to inform us. Additionally, we appreciate any suggestions for updates or improvements you may have!