Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,11 +8,10 @@ pipe = pipeline("automatic-speech-recognition", model=model_id)
|
|
8 |
|
9 |
def transcribe(filepath):
|
10 |
output = pipe(
|
11 |
-
filepath
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
# batch_size=8,
|
16 |
)
|
17 |
return output["text"]
|
18 |
|
|
|
8 |
|
9 |
def transcribe(filepath):
|
10 |
output = pipe(
|
11 |
+
filepath,
|
12 |
+
max_new_tokens=10000,
|
13 |
+
chunk_length_s=30,
|
14 |
+
batch_size=8,
|
|
|
15 |
)
|
16 |
return output["text"]
|
17 |
|