Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,8 @@ 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):
|
|
|
|
| 43 |
task="transcribe",
|
| 44 |
no_timestamps=not return_timestamps,
|
| 45 |
)
|
| 46 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
| 47 |
+
print("Supported languages:", tokenizer.lang_code_to_id.keys())
|
| 48 |
return asr(file, return_timestamps=return_timestamps, batch_size=24)
|
| 49 |
|
| 50 |
def format_output(text):
|