resume-analysis / README.md
minskiter's picture
fix(README.md): fix model permission
f13e3b8

A newer version of the Gradio SDK is available: 5.12.0

Upgrade
metadata
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

如何部署

  1. 登陆Huggingface申请模型下载权限
  1. 首先设置环境变量(重要)
export HF_Token={Your Huggingface Token}
  1. 执行部署
sudo docker compose up -d --build

新版使用docker compose,旧版使用docker-compose

  1. 启动提示
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)