Project Name: PDF to Summary
URL: https://summarizer-aigurukul.vercel.app/
PDF to Summary is a web application that allows users to upload PDF files and receive a concise summary of their content. This documentation provides a detailed guide on the project's structure, tech stack, deployment process, and usage instructions.
- Just upload the pdf file and click on generate quiz button and you will get the quiz
- You can also solve the quiz and get the marks
- Language: Python
- Framework: FastAPI
- SDK: Gorq SDK
- Modal: Meta Llama 3 70B Model
- Framework: Next.js (based on ReactJS)
- Libraries:
- Shadcn (UI library)
- Tailwind CSS
- Backend: DigitalOcean (previously on Render)
- Frontend: Vercel
- Main Application File:
main.py- Contains the FastAPI app initialization, route definitions, and Gorq SDK integration.
- Routes:
/health: Endpoint to check the health of the Application./summarize: Endpoint to return the summary of the uploaded PDF./chat: Endpoint can chat with the model./ytsummarize: Endpoint to return the summary based on URL of Youtube Video/ytchat: Endpoint can chat with the transcripted data from Youtube Video./ytquiz: Endpoint can generate the quiz with the transcripted data from YouTube.
- Dependencies:
requirements.txt: Lists all Python dependencies.render.yaml: Configuration file for deploying on Render.
- Pages:
page.js: Main landing page where users can log In to the Application.dashboard/page.js: Page to display the main interface of the application.
- Components:
UI: Component for shadcn UI elements.
- Styles:
- Tailwind CSS for styling.
- Create Render Account: Sign up at Render.
- Add Project:
- Connect your GitHub repository containing the backend code.
- Configuration:
- Ensure
requirements.txtis present for dependencies. - Add
render.yamlfor deployment configuration.
- Ensure
- Deploy:
- Follow the prompts on Render to deploy the backend server.
- Create Vercel Account: Sign up at Vercel.
- Add Project:
- Connect your GitHub repository containing the frontend code.
- Configuration:
- Ensure
next.config.jsis properly set up. - Deploy directly from the Vercel dashboard.
- Ensure
- Deploy:
- Follow the prompts on Vercel to deploy the front end.
- Access the Application:
- Upload a PDF:
- On the main page, use the upload form to select and upload a PDF file.
- Get the Summary:
- After uploading, the application processes the PDF and displays a summary on the page.
- Backend Server Not Responding:
- Ensure the backend server on Render is running.
- Check network requests in the browser's developer tools for errors.
- CORS Issues:
- Verify CORS settings in FastAPI.
- Ensure the frontend is correctly configured to make requests to the backend.
- Deployment Errors:
- Check deployment logs on Render and Vercel for error messages.
- Ensure all dependencies are listed in
requirements.txt(backend) andpackage.json(frontend).
- FastAPI Documentation
- Next.js Documentation
- Gorq SDK Documentation
- Render Deployment Guide
- Vercel Deployment Guide
PDF to Summary is a robust application designed to simplify the process of extracting summaries from PDF documents. By leveraging FastAPI for the backend and Next.js for the front end, the application provides a seamless user experience. Deployment on Render and Vercel ensures that the application is scalable and easy to manage. This documentation serves as a comprehensive guide to understanding, deploying, and using the application effectively.