Spaces:
Sleeping
Sleeping
|
Download README.md from tryprogram/offer-puplayer: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/spaces/tryprogram/offer-puplayer/resolve/main/README.md
- Command line
-
hf download hf://spaces/tryprogram/offer-puplayer/README.md
-
curl -L -o README.md https://huggingface.co/spaces/tryprogram/offer-puplayer/resolve/main/README.md
2.18 kB
| title: Offer 捕手 | |
| emoji: 🎯 | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| # Offer 捕手 — HuggingFace Spaces 部署指南 | |
| ## 前置 | |
| - 一个 GitHub 账号(https://github.com) | |
| - 一个 HuggingFace 账号(https://huggingface.co,建议用 GitHub 登录) | |
| ## 步骤 | |
| ### 1. 在 HuggingFace 创建 Space | |
| 1. 打开 https://huggingface.co/new-space | |
| 2. 填写: | |
| - **Space Name**: `offer-puplayer` | |
| - **License**: `mit` | |
| - **Space SDK**: **Docker** | |
| - **Space Hardware**: CPU basic(免费) | |
| 3. 点击 **Create Space** | |
| ### 2. 上传代码 | |
| **方式一:Git 推送(推荐)** | |
| ```bash | |
| # 克隆你的 Space(替换成你的用户名) | |
| git clone https://huggingface.co/spaces/你的用户名/offer-puplayer | |
| cd offer-puplayer | |
| # 把部署文件复制进去(从本地的 offer-puplayer-hf/ 目录复制) | |
| # 然后把所有文件 add、commit、push | |
| git add . | |
| git commit -m "Initial deploy" | |
| git push | |
| ``` | |
| **方式二:网页上传(更简单)** | |
| 1. 进入你的 Space 页面 | |
| 2. 点击 **Files** → **Add file** → **Upload files** | |
| 3. 把 `D:\tencent_HR_aiwork\offer-puplayer-hf\` 目录下的全部文件拖进去 | |
| 4. 点击 **Commit changes** | |
| ### 3. 设置环境变量 | |
| 在 Space 页面的 **Settings** → **Repository Secrets** 添加: | |
| | Name | Value | | |
| |------|-------| | |
| | `DEEPSEEK_API_KEY` | `你的 DeepSeek API Key` | | |
| ### 4. 等待构建 | |
| 1. 回到 Space 主页面 → 切换到 **Builder** 标签 | |
| 2. 看到 Docker 构建日志(约 10-15 分钟,因为要安装 torch) | |
| 3. 构建成功后自动启动,出现 **Running** 状态 | |
| 4. 访问 `https://你的用户名-offer-puplayer.hf.space` | |
| ### 5. 验证 | |
| 打开浏览器访问上面的 URL: | |
| - [ ] 首页能加载 | |
| - [ ] 推荐岗位列表能显示 | |
| - [ ] 上传简历/手工填写 → 确认 | |
| - [ ] 点击「查看匹配诊断」→ Agent 流式输出 | |
| ## 常见问题 | |
| - **构建失败**: 查看 Builder 日志,通常是网络问题,点 **Restart** 重试 | |
| - **启动超时**: 模型加载需要 30 秒左右,HF Spaces 默认 60 秒超时,如果超时去 Settings 调大 | |
| - **首次访问慢**: 首次请求要加载向量模型(30s),后续请求正常 | |