Spaces:
Running
Running
File size: 780 Bytes
2264bdc 8daaf92 2264bdc 8daaf92 2264bdc | 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 | ---
title: miniapp
emoji: 🦾
colorFrom: yellow
colorTo: indigo
sdk: gradio
app_file: miniapp_leaderboard.py
pinned: true
license: apache-2.0
hf_oauth: true
failure_strategy: rollback
tags:
- leaderboard
---
## 部署到 Hugging Face Spaces
这个 Space 会把每次提交写入一个 Hugging Face **Dataset**(避免 Space 重启丢数据)。
在 Space 的 **Settings → Variables and secrets → Secrets** 里配置:
- **HF_TOKEN**: 具有写入 dataset 权限的 token
- **LEADERBOARD_DATASET**: 目标 dataset repo id,例如 `your-username/miniapp-leaderboard`
可选:
- **MAX_ENTRIES**: 页面最多加载多少条提交(默认 500)
然后 Space 启动后即可使用。
(配置参考:`https://huggingface.co/docs/hub/spaces-config-reference`)
|