CoolFace
Apppublic

hugging-science/request-moderator

sourceHugging Faceupdated 16d agoView on Hugging Face
0likes
README.md47 linesDownload Raw Back to root
1---2title: Hugging Science Requests Review3emoji: ๐Ÿ”ฌ4colorFrom: indigo5colorTo: purple6sdk: gradio7sdk_version: 5.9.18app_file: app.py9pinned: false10hf_oauth: true11hf_oauth_scopes:12  - email13---14 15# Hugging Science โ€” requests review16 17Standalone moderation tool for huggingscience.co, decoupled from the site's18own deploy. It works alongside the existing `hugging-science/feedback-api`19Space (see `../feedback-api/`), not instead of it:20 211. `FeedbackWidget` on the site POSTs every submission to22   `hugging-science-feedback-api.hf.space/submit`, same as before.232. That Space now routes `type: "feedback"` to `feedback.jsonl` (unchanged)24   and everything else โ€” `dataset`/`model`/`organization`/`blog`/`challenge`25   โ€” to a new `requests.jsonl`, both in the `hugging-science/request` dataset.263. **This Space** reads `requests.jsonl`, lets the site owner approve or27   reject each pending row, and on approve opens a GitHub pull request28   against [`georgiachanning/huggingscience-dot-co`](https://github.com/georgiachanning/huggingscience-dot-co)29   adding the entry to the right `src/data/*.js` file. The site owner still30   reviews and merges that PR by hand โ€” this tool only removes the manual31   data-entry step, not the final review.32 33## Required Space secrets34 35| Secret | Purpose |36| --- | --- |37| `GITHUB_TOKEN` | Fine-grained PAT scoped to `georgiachanning/huggingscience-dot-co` with `contents:write` + `pull-requests:write`. |38| `HF_TOKEN` | Write-scoped HF token for the `hugging-science` org, used to read/update `requests.jsonl`. |39| `ADMIN_USERS` | Comma-separated Hugging Face usernames allowed into the admin UI. |40 41## Optional Space variables42 43| Variable | Default | Purpose |44| --- | --- | --- |45| `HF_DATASET_REPO` | `hugging-science/request` | Dataset repo holding both `feedback.jsonl` and `requests.jsonl`. |46| `GITHUB_REPO` | `georgiachanning/huggingscience-dot-co` | Repo that approved requests open PRs against. |47