anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Explains how text models reach their outputs with SHAP, on five named models for question answering, translation, emotion, summarization and text generation. For NLP learners and researchers.
HF SHAP is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download Hellisotherpeople/HF-SHAP --repo-type space --local-dir HF-SHAP cd HF-SHAP
HF SHAP is a Streamlit app that, by its name, uses SHAP to explain text models. SHAP scores how much each part of an input pushes a model's output. The record names five models, which by their names cover question answering, English to Spanish translation, emotion, summarization and text generation.
It suits NLP researchers, students and teachers who want to see why a text model gave the output it did. Developers can read it as a small example of one page serving several model types.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Research | NLP researchers | Check which words drive a model's output | Pick a model and enter a short text |
| Education | Students and teachers | Show that model decisions can be inspected | Run the same sentence through two tasks |
| Software | Python developers | Read how several models share one Streamlit page | Open app.py and follow the model setup |
You can skip it if you are not working with text models.
| Use case | Who | What they get back |
|---|---|---|
| Inspect a model's output | Researchers | A view of which input words mattered |
| Teach model explanation | Teachers | A hands-on page to click through |
| Compare tasks | Students | Explanations for different model types side by side |
pip install -U huggingface_hub hf download Hellisotherpeople/HF-SHAP --repo-type space --local-dir HF-SHAP cd HF-SHAP pip install streamlit pip install -r requirements.txt streamlit run app.py
Online, open the Space and use the controls on its page. On your own machine, run the main file with Streamlit from the Space folder, then use the page it serves. The record does not list the controls, so look at the page.
streamlit run app.py
You open the Space, choose one of the models and enter a short text. The app returns the model's output and shows which words weighed most on it. The record shows no sample, so the exact controls may differ.
Explainability means asking why a model gave a certain answer. Start by opening the Space, choosing one task and typing a short sentence to see what comes back.
If you know the field, SHAP gives each input token a contribution to the output, based on Shapley values. Running it across several model types in one page shows how the method behaves per task. The record gives no settings, and basic CPU hosting may make long inputs slow.
Explains how text models reach their outputs with SHAP, on five named models for question answering, translation, emotion, summarization and text generation. For NLP learners and researchers.
Made by Hellisotherpeople on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: HF SHAP is a Streamlit app that, by its name, uses SHAP to explain text models. SHAP scores how much each part of an input pushes a model's output. The record names five models, which by their names cover question answering, English to Spanish translation, emotion, summarization and text generation.
Who it suits: It suits NLP researchers, students and teachers who want to see why a text model gave the output it did. Developers can read it as a small example of one page serving several model types.
Industry | Who uses it | How they use it | Example
Research | NLP researchers | Check which words drive a model's output | Pick a model and enter a short text
Education | Students and teachers | Show that model decisions can be inspected | Run the same sentence through two tasks
Software | Python developers | Read how several models share one Streamlit page | Open app.py and follow the model setup
You can skip it if you are not working with text models.
Where to use it:
Use case | Who | What they get back
Inspect a model's output | Researchers | A view of which input words mattered
Teach model explanation | Teachers | A hands-on page to click through
Compare tasks | Students | Explanations for different model types side by side
How to set it up:
pip install -U huggingface_hub
hf download Hellisotherpeople/HF-SHAP --repo-type space --local-dir HF-SHAP
cd HF-SHAP
pip install streamlit
pip install -r requirements.txt
streamlit run app.py
How to use it: Online, open the Space and use the controls on its page. On your own machine, run the main file with Streamlit from the Space folder, then use the page it serves. The record does not list the controls, so look at the page.
streamlit run app.py
Example: You open the Space, choose one of the models and enter a short text. The app returns the model's output and shows which words weighed most on it. The record shows no sample, so the exact controls may differ.
For newcomers and experts: Explainability means asking why a model gave a certain answer. Start by opening the Space, choosing one task and typing a short sentence to see what comes back.
If you know the field, SHAP gives each input token a contribution to the output, based on Shapley values. Running it across several model types in one page shows how the method behaves per task. The record gives no settings, and basic CPU hosting may make long inputs slow.
You pick a model and enter text
The app runs the model on your text
SHAP scores each input word
The page shows the scores
Good to know:
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 4 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| HF SHAP This page | 8 | streamlit | mit | |
| AI Phone LeaderboardShares streamlit | 127 | streamlit | mit | |
| fev-benchShares streamlit | 72 | docker | apache-2.0 | |
| OutsmartShares streamlit | 62 | streamlit | mit | |
| HF BERTopicShares streamlit | 24 | streamlit | mit | |
| Car Part ClassificationShares streamlit | 4 | streamlit | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
AbdomenAtlas · Kit
Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…