--- 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`)