Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,8 @@ def yt_transcribe(yt_url, task):
|
|
84 |
inputs = {"array": inputs, "sampling_rate": pipe.feature_extractor.sampling_rate}
|
85 |
|
86 |
|
87 |
-
text = pipe(inputs,
|
|
|
88 |
# text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
89 |
# text = pipe("audio.mp3",return_timestamps=True)
|
90 |
#trans to SRT
|
|
|
84 |
inputs = {"array": inputs, "sampling_rate": pipe.feature_extractor.sampling_rate}
|
85 |
|
86 |
|
87 |
+
text = pipe(inputs,return_timestamps=True)
|
88 |
+
# text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"language":"zh"}, return_timestamps=True)
|
89 |
# text = pipe(inputs, batch_size=BATCH_SIZE, generate_kwargs={"task": task}, return_timestamps=True)["text"]
|
90 |
# text = pipe("audio.mp3",return_timestamps=True)
|
91 |
#trans to SRT
|