khalidey commited on
Commit
60310f3
1 Parent(s): 2d505e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,9 +33,9 @@ def convert_to_wav(path):
33
  def youtube_transcribe(url):
34
 
35
  path = youtube_link(url)
36
- path_wav = convert_to_wav(path)
37
 
38
- audio_dataset = Dataset.from_dict({"audio": list(path_wav)}).cast_column("audio", Audio(sampling_rate=16000))
39
  text = pipe1(audio_dataset["audio"])["text"]
40
 
41
  return text
 
33
  def youtube_transcribe(url):
34
 
35
  path = youtube_link(url)
36
+ # path_wav = convert_to_wav(path)
37
 
38
+ audio_dataset = Dataset.from_dict({"audio": [path]}).cast_column("audio", Audio(sampling_rate=16000))
39
  text = pipe1(audio_dataset["audio"])["text"]
40
 
41
  return text