Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def pipe(file, return_timestamps=False,lang="nn"):
|
|
43 |
task="transcribe",
|
44 |
no_timestamps=not return_timestamps,
|
45 |
)
|
46 |
-
return asr(file, return_timestamps=return_timestamps, batch_size=24,
|
47 |
|
48 |
def format_output(text):
|
49 |
# Add a line break after ".", "!", ":", or "?" unless part of sequences like "..."
|
|
|
43 |
task="transcribe",
|
44 |
no_timestamps=not return_timestamps,
|
45 |
)
|
46 |
+
return asr(file, return_timestamps=return_timestamps, batch_size=24, generate_kwargs={'task': 'transcribe', 'language': lang})
|
47 |
|
48 |
def format_output(text):
|
49 |
# Add a line break after ".", "!", ":", or "?" unless part of sequences like "..."
|