Update README.md
Browse files
README.md
CHANGED
|
@@ -142,7 +142,7 @@ model_id = "kotoba-tech/kotoba-whisper-v2.0"
|
|
| 142 |
torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
| 143 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 144 |
model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
|
| 145 |
-
generate_kwargs = {"language": "
|
| 146 |
|
| 147 |
# load model
|
| 148 |
pipe = pipeline(
|
|
@@ -204,7 +204,7 @@ model_id = "kotoba-tech/kotoba-whisper-v2.0"
|
|
| 204 |
torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
| 205 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 206 |
model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
|
| 207 |
-
generate_kwargs = {"language": "
|
| 208 |
|
| 209 |
# load model
|
| 210 |
pipe = pipeline(
|
|
|
|
| 142 |
torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
| 143 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 144 |
model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
|
| 145 |
+
generate_kwargs = {"language": "ja", "task": "transcribe"}
|
| 146 |
|
| 147 |
# load model
|
| 148 |
pipe = pipeline(
|
|
|
|
| 204 |
torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
|
| 205 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 206 |
model_kwargs = {"attn_implementation": "sdpa"} if torch.cuda.is_available() else {}
|
| 207 |
+
generate_kwargs = {"language": "ja", "task": "transcribe"}
|
| 208 |
|
| 209 |
# load model
|
| 210 |
pipe = pipeline(
|