correct typo in apply_transcription_request
#24
by revvvxx - opened
README.md
CHANGED
|
@@ -512,7 +512,7 @@ repo_id = "mistralai/Voxtral-Mini-3B-2507"
|
|
| 512 |
processor = AutoProcessor.from_pretrained(repo_id)
|
| 513 |
model = VoxtralForConditionalGeneration.from_pretrained(repo_id, torch_dtype=torch.bfloat16, device_map=device)
|
| 514 |
|
| 515 |
-
inputs = processor.
|
| 516 |
inputs = inputs.to(device, dtype=torch.bfloat16)
|
| 517 |
|
| 518 |
outputs = model.generate(**inputs, max_new_tokens=500)
|
|
|
|
| 512 |
processor = AutoProcessor.from_pretrained(repo_id)
|
| 513 |
model = VoxtralForConditionalGeneration.from_pretrained(repo_id, torch_dtype=torch.bfloat16, device_map=device)
|
| 514 |
|
| 515 |
+
inputs = processor.apply_transcription_request(language="en", audio="https://huggingface.co/datasets/hf-internal-testing/dummy-audio-samples/resolve/main/obama.mp3", model_id=repo_id)
|
| 516 |
inputs = inputs.to(device, dtype=torch.bfloat16)
|
| 517 |
|
| 518 |
outputs = model.generate(**inputs, max_new_tokens=500)
|