This project uses Mistral-7B model to generate Question and Answers from a PDF and gives output in a CSV file and on the terminal.
-
Download the code:
- Clone the repository or download the code as a ZIP file.
-
Navigate to the directory:
- Use Annaconda CLI to navigate to the directory where the code is located.
-
Create a conda environment and activate it
- Refer to commands.txt
-
Install dependencies:
-
pip install -r requirements.txt
-
-
Run the code:
- Execute the command to run the code.
python app.py
- Start the server
uvicorn app:app --reload
- Execute the command to run the code.
-
Open localhost:8000 and upload the desired pdf and generate😀
Click on download button to download the csv file else it will be saved here.