This is a Streamlit application for analyzing documents. You can enter a prompt and upload a PDF or Word document, and the app will apply your prompt to each paragraph and display a diff of suggested changes.
- 
Copy
.env.exampleto.envand set your OpenAI API key:cp .env.example .env
Note: When deploying to Streamlit Cloud, add your OpenAI API key to the Secrets Manager under
OPENAI_API_KEY. - 
Install dependencies:
pip install -r requirements.txt
 - 
Run the application:
streamlit run doc_analyzer.py
 
- Enter a prompt describing how you want to revise the document.
 - Upload a PDF or Word document.
 - The app will process each paragraph using OpenAI and show a unified diff of the changes.