myhloli 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa
..
Dockerfile 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa
README.md 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa
app.py 2bdb544553 update api path and documents 8 mesi fa
download_models.py 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa
entrypoint.sh c734f4debe refactor(web_api): Optimize `Dockerfile` 9 mesi fa
magic-pdf.json 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa
requirements.txt 3a820305c8 feat(web_api): update configuration and remove unused code 7 mesi fa

README.md

基于MinerU的PDF解析API

  • MinerU的GPU镜像构建
  • 基于FastAPI的PDF解析接口

构建方式

docker build -t mineru-api .

或者使用代理:

docker build --build-arg http_proxy=http://127.0.0.1:7890 --build-arg https_proxy=http://127.0.0.1:7890 -t mineru-api .

启动命令

docker run --rm -it --gpus=all -p 8000:8000 mineru-api

测试参数

访问地址:

http://localhost:8000/docs
http://127.0.0.1:8000/docs