https://github.com/daodao97/gptpdf-ui
Using GPT to parse PDF
https://github.com/daodao97/gptpdf-ui
Last synced: 26 days ago
JSON representation
Using GPT to parse PDF
- Host: GitHub
- URL: https://github.com/daodao97/gptpdf-ui
- Owner: daodao97
- License: mit
- Created: 2024-06-30T02:28:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T01:29:34.000Z (8 months ago)
- Last Synced: 2025-04-10T00:53:59.578Z (26 days ago)
- Language: HTML
- Homepage:
- Size: 3.43 MB
- Stars: 94
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# gptpdf ui
[gptpdf](https://github.com/CosmosShadow/gptpdf)

## install dependencies
```shell
pip install -r requirements.txt
```## set openai key
```shell
export OPENAI_BASE_URL=https://api.xxxx.com/v1
export OPENAI_API_KEY=sk-xxxxx
```## start serve
```shell
python main.py
```or
```shell
flask --app main.py run
```## docker
```
docker compose up --builddocker compose up
```## api
- `/upload` response pdf conent with sse
- `/files/` response pdf content with html
- `/md/` response pdf content with md