CoolFace
Apppublic

hugging-science/request-moderator

sourceHugging Faceupdated 13d agoView on Hugging Face
0likes
App README

Hugging Science — requests review

Standalone moderation tool for huggingscience.co, decoupled from the site's own deploy. It works alongside the existing hugging-science/feedback-api Space (see ../feedback-api/), not instead of it:

  1. 1.FeedbackWidget on the site POSTs every submission to hugging-science-feedback-api.hf.space/submit, same as before.
  2. 2.That Space now routes type: "feedback" to feedback.jsonl (unchanged) and everything else — dataset/model/organization/blog/challenge — to a new requests.jsonl, both in the hugging-science/request dataset.
  3. 3.This Space reads requests.jsonl, lets the site owner approve or reject each pending row, and on approve opens a GitHub pull request against `georgiachanning/huggingscience-dot-co` adding the entry to the right src/data/*.js file. The site owner still reviews and merges that PR by hand — this tool only removes the manual data-entry step, not the final review.

Required Space secrets

SecretPurpose
GITHUB_TOKENFine-grained PAT scoped to georgiachanning/huggingscience-dot-co with contents:write + pull-requests:write.
HF_TOKENWrite-scoped HF token for the hugging-science org, used to read/update requests.jsonl.
ADMIN_USERSComma-separated Hugging Face usernames allowed into the admin UI.

Optional Space variables

VariableDefaultPurpose
HF_DATASET_REPOhugging-science/requestDataset repo holding both feedback.jsonl and requests.jsonl.
GITHUB_REPOgeorgiachanning/huggingscience-dot-coRepo that approved requests open PRs against.