Update README.md
Browse files
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": "
|
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": "
|
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(
|