eustlb HF Staff commited on
Commit
1f683be
·
verified ·
1 Parent(s): 74cef83

Shorten return_format comment

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -81,7 +81,7 @@ inputs = processor.apply_transcription_request(
81
 
82
  output = model.generate(**inputs, max_new_tokens=512)
83
  generated = output[:, inputs["input_ids"].shape[-1]:]
84
- # return_format="parsed" returns {"language": ..., "transcription": ...} instead
85
  print(processor.decode(generated, return_format="transcription_only")[0])
86
  ```
87
 
 
81
 
82
  output = model.generate(**inputs, max_new_tokens=512)
83
  generated = output[:, inputs["input_ids"].shape[-1]:]
84
+ # return_format="parsed" if detecting language
85
  print(processor.decode(generated, return_format="transcription_only")[0])
86
  ```
87