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

Update benchmark.py

Browse files
Files changed (1) hide show
  1. benchmark.py +1 -4
benchmark.py CHANGED
@@ -7,15 +7,12 @@ from datasets import load_dataset
7
  # config
8
  generate_kwargs = {"language": "japanese", "task": "transcribe"}
9
  model_id = "kotoba-tech/kotoba-whisper-v1.0"
10
- torch_dtype = torch.float32
11
- device = "cpu"
12
 
13
  # load model
14
  pipe = pipeline(
15
  "automatic-speech-recognition",
16
  model=model_id,
17
- torch_dtype=torch_dtype,
18
- device=device,
19
  )
20
 
21
  test_audio = [
 
7
  # config
8
  generate_kwargs = {"language": "japanese", "task": "transcribe"}
9
  model_id = "kotoba-tech/kotoba-whisper-v1.0"
 
 
10
 
11
  # load model
12
  pipe = pipeline(
13
  "automatic-speech-recognition",
14
  model=model_id,
15
+ torch_dtype=torch.bfloat16
 
16
  )
17
 
18
  test_audio = [