Skip to content

theam/doc_processor

Repository files navigation

Document Analyzer

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.

Setup

  1. Copy .env.example to .env and 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.

  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    streamlit run doc_analyzer.py

Usage

  • 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.

About

A simple LLM-based doc processor built with Streamlit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages