Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ device = 0 if torch.cuda.is_available() else "cpu"
|
|
| 12 |
pipe = pipeline(
|
| 13 |
task="translation",
|
| 14 |
model=MODEL_NAME,
|
| 15 |
-
chunk_length_s=
|
| 16 |
device=device,
|
| 17 |
)
|
| 18 |
|
|
|
|
| 12 |
pipe = pipeline(
|
| 13 |
task="translation",
|
| 14 |
model=MODEL_NAME,
|
| 15 |
+
chunk_length_s=30,
|
| 16 |
device=device,
|
| 17 |
)
|
| 18 |
|