Spaces:
Runtime error
Runtime error
| title: Resume Analysis | |
| emoji: 📚 | |
| colorFrom: indigo | |
| colorTo: pink | |
| sdk: gradio | |
| sdk_version: 3.36.1 | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| ### 环境 | |
| 1. 最新的Docker Engine - Community(Linux版本) | |
| version: 20.0.4 | |
| ### 如何部署 | |
| 0. 登陆Huggingface申请模型下载权限 | |
| - minskiter/resume-token-classification | |
| https://huggingface.co/minskiter/resume-token-classification | |
| - minskiter/resume-token-classification-name-0708 | |
| https://huggingface.co/minskiter/resume-token-classification-name-0708 | |
| - minskiter/cossim-bert-chinese-wwm-ext | |
| https://huggingface.co/minskiter/cossim-bert-chinese-wwm-ext | |
| 1. 首先设置环境变量(重要) | |
| ```bash | |
| export HF_Token={Your Huggingface Token} | |
| ``` | |
| 2. 执行部署 | |
| ``` | |
| sudo docker compose up -d --build | |
| ``` | |
| 新版使用`docker compose`,旧版使用`docker-compose` | |
| 3. 启动提示 | |
| ``` | |
| resume-analysis-ner-1 | 2023-07-15 17:43:54,948 - __main__ - INFO - Starting server on port 50051 | |
| resume-analysis-ner-1 | 2023-07-15 17:43:54,949 - __main__ - INFO - Running.. | |
| ``` | |
| 此时模型服务就绪,并开放端口到默认50050端口(由docker-compose.yml映射50051到50050) | |