Update README.md
Browse files
README.md
CHANGED
@@ -102,7 +102,6 @@ pipe = pipeline(
|
|
102 |
torch_dtype=torch_dtype,
|
103 |
device=device,
|
104 |
model_kwargs=model_kwargs,
|
105 |
-
chunk_length_s=15,
|
106 |
batch_size=16,
|
107 |
trust_remote_code=True,
|
108 |
punctuator=True
|
@@ -113,7 +112,7 @@ dataset = load_dataset("japanese-asr/ja_asr.reazonspeech_test", split="test")
|
|
113 |
sample = dataset[0]["audio"]
|
114 |
|
115 |
# run inference
|
116 |
-
result = pipe(sample, return_timestamps=True, generate_kwargs=generate_kwargs)
|
117 |
print(result)
|
118 |
```
|
119 |
|
@@ -151,7 +150,6 @@ pipe = pipeline(
|
|
151 |
torch_dtype=torch_dtype,
|
152 |
device=device,
|
153 |
model_kwargs=model_kwargs,
|
154 |
-
chunk_length_s=15,
|
155 |
batch_size=16,
|
156 |
trust_remote_code=True
|
157 |
)
|
@@ -160,7 +158,7 @@ pipe = pipeline(
|
|
160 |
dataset = load_dataset("japanese-asr/ja_asr.reazonspeech_test", split="test")
|
161 |
|
162 |
# --- Without prompt ---
|
163 |
-
text = pipe(dataset[10]["audio"], generate_kwargs=generate_kwargs)['text']
|
164 |
print(text)
|
165 |
# 81歳、力強い走りに変わってきます。
|
166 |
|
|
|
102 |
torch_dtype=torch_dtype,
|
103 |
device=device,
|
104 |
model_kwargs=model_kwargs,
|
|
|
105 |
batch_size=16,
|
106 |
trust_remote_code=True,
|
107 |
punctuator=True
|
|
|
112 |
sample = dataset[0]["audio"]
|
113 |
|
114 |
# run inference
|
115 |
+
result = pipe(sample, chunk_length_s=15, return_timestamps=True, generate_kwargs=generate_kwargs)
|
116 |
print(result)
|
117 |
```
|
118 |
|
|
|
150 |
torch_dtype=torch_dtype,
|
151 |
device=device,
|
152 |
model_kwargs=model_kwargs,
|
|
|
153 |
batch_size=16,
|
154 |
trust_remote_code=True
|
155 |
)
|
|
|
158 |
dataset = load_dataset("japanese-asr/ja_asr.reazonspeech_test", split="test")
|
159 |
|
160 |
# --- Without prompt ---
|
161 |
+
text = pipe(dataset[10]["audio"], chunk_length_s=15, generate_kwargs=generate_kwargs)['text']
|
162 |
print(text)
|
163 |
# 81歳、力強い走りに変わってきます。
|
164 |
|