khalidey commited on
Commit
cdb9ddf
1 Parent(s): 71adafd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def youtube_transcribe(url):
23
 
24
  path = youtube_link(url)
25
 
26
- audio_dataset = Dataset.from_dict({"audio": path}).cast_column("audio", Audio(sampling_rate=16000))
27
  text = pipe1(audio_dataset["audio"])["text"]
28
 
29
  with gr.Blocks() as demo:
 
23
 
24
  path = youtube_link(url)
25
 
26
+ audio_dataset = Dataset.from_dict({"audio": list(path)}).cast_column("audio", Audio(sampling_rate=16000))
27
  text = pipe1(audio_dataset["audio"])["text"]
28
 
29
  with gr.Blocks() as demo: