Spaces:
Runtime error
Runtime error
File size: 1,255 Bytes
a70d44f f0b9b57 f13e3b8 669e2b2 f0b9b57 669e2b2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
---
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)
|