This Streamlit application allows users to upload PDF files, which are then split into pages, converted to base64 images, and analyzed using GPT-4o to generate markdown text. The application also provides insights into the text based on user-defined analysis goals.
- Create a new virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install the required packages:
pip install -r requirements.txt
- Copy the example environment file and fill in your OpenAI key:
Edit
cp .env.example .env
.env
to add your OpenAI key. - Run the Streamlit app:
streamlit run main.py