Spaces:
Running
Running
File size: 3,359 Bytes
75dc663 9620ce1 75dc663 9620ce1 75dc663 9620ce1 75dc663 9620ce1 | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | ---
title: One Good Commit
emoji: 🃏
colorFrom: yellow
colorTo: green
sdk: static
app_file: index.html
pinned: false
license: mit
short_description: Evidence-backed model card contribution assistant
---
# One Good Commit
One Good Commit reads a public Hugging Face model card and prepares a bounded
documentation contribution packet for a human to review.
It answers three narrow questions:
1. What relevant documentation can be located in the public model card?
2. Which selected documentation signals were not found by the deterministic review?
3. What questions could a prospective contributor ask without inventing facts?
The tool does **not** score compliance, certify safety, evaluate model quality,
run the model, or post a Discussion or pull request.
## Why this exists
Model cards help people discover, reproduce, understand, and responsibly use
models. Maintainers also have uneven time, information, and documentation needs.
This project is a small contribution aid: it keeps evidence attached to each
observation and leaves every consequential decision with a person.
## Method
The app retrieves two public sources:
- the model repository's Hub API record;
- the selected revision of its `README.md`.
It then runs deterministic checks for documentation signals related to:
- license;
- language coverage;
- task and model type;
- base model or provenance;
- intended uses;
- out-of-scope uses;
- limitations, risks, or biases;
- training data;
- evaluation evidence;
- training and reproducibility details;
- citations or supporting papers.
A result can be:
- **Documented:** relevant metadata or card text was located.
- **Review:** related text was located, but a structured or clearer source may
still need human review.
- **Not found:** the review did not locate relevant information.
“Not found” is deliberately limited language. It does not mean the information
does not exist, the section is mandatory, or the maintainer has done something
wrong.
## Deployment
The public Space is intentionally static so it can run without a paid server,
GPU, account system, or secret. Its browser-side code makes read-only requests
to the selected public model's Hub API record and `README.md`; model-card text
is treated as untrusted and rendered as text, not HTML.
The earlier Python/Gradio prototype and fixture tests remain in this repository
as a local reference implementation. The deployed Space is `index.html`,
`static-app.js`, and `static-styles.css`.
## Run the local reference implementation
```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py
```
The analyzer and its tests use only the Python standard library:
```bash
python -m unittest discover -s tests -v
```
## Contribution boundary
Before contacting a maintainer:
1. Read the complete card and linked primary sources.
2. Confirm that the suggested section applies to that model.
3. Remove speculative placeholders.
4. Ask questions where only maintainers can know the answer.
5. Prefer one small, accurate improvement over a broad rewrite.
No output from this tool should be posted automatically.
## Privacy and access
The current version accepts public, ungated model repositories only. It does not
accept uploaded documents or store model card content in an application
database.
## License
MIT
|