Automatic Speech Recognition
Transformers
Safetensors
Japanese
whisper
audio
hf-asr-leaderboard
Eval Results
Inference Endpoints
asahi417 commited on
Commit
a81f3fe
·
verified ·
1 Parent(s): cb8ed34

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -141,7 +141,7 @@ model_id = "kotoba-tech/kotoba-whisper-v1.0"
141
  torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
142
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
143
  model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
144
- generate_kwargs = {"language": "japanese", "task": "transcribe"}
145
 
146
  # load model
147
  pipe = pipeline(
@@ -239,7 +239,7 @@ model_id = "kotoba-tech/kotoba-whisper-v1.0"
239
  torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
240
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
241
  model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
242
- generate_kwargs = {"language": "japanese", "task": "transcribe"}
243
 
244
  # load model
245
  pipe = pipeline(
 
141
  torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
142
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
143
  model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
144
+ generate_kwargs = {"language": "ja", "task": "transcribe"}
145
 
146
  # load model
147
  pipe = pipeline(
 
239
  torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
240
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
241
  model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
242
+ generate_kwargs = {"language": "ja", "task": "transcribe"}
243
 
244
  # load model
245
  pipe = pipeline(