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.
vi-audio-sys1 / example.py
v1olet's picture
Initial release
2160c31
Raw History Blame Contribute Delete
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'))}")