Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,7 @@ generate_kwargs = {
|
|
| 22 |
pipe = pipeline(
|
| 23 |
"automatic-speech-recognition",
|
| 24 |
model="AkitoP/whisper-large-v3-japense-phone_accent",
|
|
|
|
| 25 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
| 26 |
)
|
| 27 |
|
|
|
|
| 22 |
pipe = pipeline(
|
| 23 |
"automatic-speech-recognition",
|
| 24 |
model="AkitoP/whisper-large-v3-japense-phone_accent",
|
| 25 |
+
chunk_length_s=30,
|
| 26 |
device="cuda" if torch.cuda.is_available() else "cpu",
|
| 27 |
)
|
| 28 |
|