Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def pipe(file, return_timestamps=False):
|
|
| 30 |
task="transcribe",
|
| 31 |
no_timestamps=not return_timestamps,
|
| 32 |
)
|
| 33 |
-
asr.model.config.no_timestamps_token_id = asr.tokenizer.encode("<|notimestamps|>", add_special_tokens=False)[0]
|
| 34 |
return asr(file, return_timestamps=return_timestamps)
|
| 35 |
|
| 36 |
def transcribe(file, return_timestamps=False):
|
|
|
|
| 30 |
task="transcribe",
|
| 31 |
no_timestamps=not return_timestamps,
|
| 32 |
)
|
| 33 |
+
# asr.model.config.no_timestamps_token_id = asr.tokenizer.encode("<|notimestamps|>", add_special_tokens=False)[0]
|
| 34 |
return asr(file, return_timestamps=return_timestamps)
|
| 35 |
|
| 36 |
def transcribe(file, return_timestamps=False):
|