new4u commited on
Commit
37a5daf
1 Parent(s): 6025bb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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, batch_size=BATCH_SIZE, generate_kwargs={"language":"zh"}, return_timestamps=True)
 
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