Leaderboard / README.md
ha251's picture
Update README.md
7cf2800 verified

A newer version of the Gradio SDK is available: 6.8.0

Upgrade
metadata
title: miniapp
emoji: 🦾
python_version: '3.11'
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