Audio Classification
Transformers
Safetensors
Vietnamese
English
audio_decision
feature-extraction
audio
speech
vietnamese
audio-question-answering
calibration
keyword-spotting
custom_code
Run this model with HF Jobs
Run v1olet/vi-audio-sys1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/v1olet/vi-audio-sys1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/v1olet/vi-audio-sys1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use v1olet/vi-audio-sys1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use v1olet/vi-audio-sys1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="v1olet/vi-audio-sys1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("v1olet/vi-audio-sys1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download example.py from v1olet/vi-audio-sys1: direct link, hf CLI and curl.
- Browser
- Download file 820 Bytes
-
https://huggingface.co/v1olet/vi-audio-sys1/resolve/main/example.py
- Command line
-
hf download hf://v1olet/vi-audio-sys1/example.py
-
curl -L -o example.py https://huggingface.co/v1olet/vi-audio-sys1/resolve/main/example.py
820 Bytes
| """Minimal usage example for vi-audio-sys1. python example.py path/to/clip.wav""" | |
| import sys | |
| from transformers import AutoModel | |
| model = AutoModel.from_pretrained(".", trust_remote_code=True) # or "v1olet/vi-audio-sys1" | |
| clip = sys.argv[1] if len(sys.argv) > 1 else "clip.wav" | |
| for a in model.ask(clip, [ | |
| {"type": "yes_no", "question": "Is someone speaking?"}, | |
| {"type": "choice", "question": "Người nói dùng ngôn ngữ nào?", "options": ["tiếng Việt", "tiếng Anh"]}, | |
| {"type": "choice", "question": "Is the speaker male or female?", "options": ["male", "female", "cannot tell"]}, | |
| {"type": "score", "question": "How likely is it that the recording is very noisy?"}, | |
| ]): | |
| print(f"{a['question']:45s} -> {a['answer']} {a.get('probability', a.get('probabilities'))}") | |