An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# gptpdf ui

[gptpdf](https://github.com/CosmosShadow/gptpdf)

![](preview.png)

## 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 --build

docker compose up
```

## api

- `/upload` response pdf conent with sse

- `/files/` response pdf content with html

- `/md/` response pdf content with md