daodao97 / gptpdf-ui

Using GPT to parse PDF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gptpdf ui

gptpdf

install dependencies

pip install -r requirements.txt

set openai key

export OPENAI_BASE_URL=https://api.xxxx.com/v1
export OPENAI_API_KEY=sk-xxxxx

start serve

python main.py

or

flask --app main.py run

docker

docker compose up --build

docker compose up

api

  • /upload response pdf conent with sse

  • /files/<path:filename> response pdf content with html

  • /md/<path:filename> response pdf content with md

About

Using GPT to parse PDF

License:MIT License


Languages

Language:HTML 64.9%Language:Python 33.9%Language:Dockerfile 1.2%