eustlb HF Staff commited on
Commit
92bc43f
·
verified ·
1 Parent(s): be133a9

Add Pipeline usage snippet to Transformers section

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -422,6 +422,20 @@ Until Nemotron3_5Asr is part of an official Transformers release, install Transf
422
  pip install git+https://github.com/huggingface/transformers
423
  ```
424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  <details>
426
  <summary>➡️ Offline transcription</summary>
427
 
 
422
  pip install git+https://github.com/huggingface/transformers
423
  ```
424
 
425
+ <details>
426
+ <summary>➡️ Pipeline</summary>
427
+
428
+ ```python
429
+ from transformers import pipeline
430
+
431
+ pipe = pipeline("automatic-speech-recognition", model="nvidia/nemotron-3.5-asr-streaming-0.6b")
432
+ out = pipe("https://huggingface.co/datasets/hf-internal-testing/dummy-audio-samples/resolve/main/bcn_weather.mp3")
433
+ print(out)
434
+ ```
435
+
436
+ The pipeline uses the default language prompt (index 0, `en-US`). For explicit language conditioning or automatic detection, pass the processor's `language` argument (see the AutoModel example below).
437
+ </details>
438
+
439
  <details>
440
  <summary>➡️ Offline transcription</summary>
441