"""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'))}")