This project is a PDF summarization API using Python, Flask, and OpenAI's GPT-3.5. It allows users to upload a PDF and ask questions about its content.
- Upload a PDF file
- Ask questions about the PDF content
- Receive summarized text as a response
- Python 3.9+
- Pip
- OpenAI API key
-
Clone the Repository
git clone https://github.com/PasanGunathilaka/Group_E_AiSsearchEngine.git cd Group_E_AiSsearchEngine cd Backend
-
Create a Virtual Environment
- python -m venv venv
- Activate the Virtual Environment
- .\venv\Scripts\activate
- Install Dependencies
- pip install -r requirements.txt
- Set Up Environment Variables
- OPENAI_API_KEY=your_openai_api_key
- Run The backend
- python app.py
- Install Dependencies
- npm install
- Start the Development Server
- npm run dev