mnistvit MNIST Vision Transformer
by asneltco.huggingface.asnelt/mnistvit
- Remote endpoint
- 2 tools
- MIT
Tools
mnistvit_predict_base64Predict a digit from an inline base64-encoded image, with no file hosting required. Uses mnistvit, a vision transformer (ViT) trained on MNIST with 99.65% test accuracy to classify the image. This is the MCP-friendly entry point: unlike `predict_file`, which needs a URL, this endpoint accepts the raw image bytes as a base64 string directly in the request. The model classifies at 28 x 28 pixels internally, so there is no accuracy benefit to calling with a larger image. Returns: int or dict: Predicted digit class label or dict of digit class probabilities., Raises:, gradio.Error: If the image is not provided or malformed.mnistvit_predict_fileRead in an image file and predict its digit. Uses mnistvit, a vision transformer (ViT) trained on MNIST with 99.65% test accuracy to classify the given image. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool. Returns: int or dict: Predicted digit class label or dict of digit class probabilities.
No tool matches.
As the server's own listing gives them. We never call a tool.