ayymen commited on
Commit
a2464df
1 Parent(s): 036a50f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from nemo.collections.asr.models import EncDecCTCModelBPE
2
- import yt_dlp as youtube_dl
3
  import os
4
  import tempfile
5
  import torch
@@ -42,10 +42,12 @@ EXAMPLES = [
42
  ["common_voice_zgh_37837257.mp3"]
43
  ]
44
 
 
45
  YT_EXAMPLES = [
46
  ["https://www.youtube.com/shorts/CSgTSE50MHY"],
47
  ["https://www.youtube.com/shorts/OxQtqOyAFLE"]
48
  ]
 
49
 
50
  def _return_yt_html_embed(yt_url):
51
  video_id = yt_url.split("?v=")[-1]
@@ -137,6 +139,7 @@ file_transcribe = gr.Interface(
137
  allow_flagging="never",
138
  )
139
 
 
140
  youtube_transcribe = gr.Interface(
141
  fn=yt_transcribe,
142
  inputs=[
@@ -152,6 +155,7 @@ youtube_transcribe = gr.Interface(
152
  ),
153
  allow_flagging="never",
154
  )
 
155
 
156
  with demo:
157
  gr.TabbedInterface(
 
1
  from nemo.collections.asr.models import EncDecCTCModelBPE
2
+ #import yt_dlp as youtube_dl
3
  import os
4
  import tempfile
5
  import torch
 
42
  ["common_voice_zgh_37837257.mp3"]
43
  ]
44
 
45
+ """
46
  YT_EXAMPLES = [
47
  ["https://www.youtube.com/shorts/CSgTSE50MHY"],
48
  ["https://www.youtube.com/shorts/OxQtqOyAFLE"]
49
  ]
50
+ """
51
 
52
  def _return_yt_html_embed(yt_url):
53
  video_id = yt_url.split("?v=")[-1]
 
139
  allow_flagging="never",
140
  )
141
 
142
+ """
143
  youtube_transcribe = gr.Interface(
144
  fn=yt_transcribe,
145
  inputs=[
 
155
  ),
156
  allow_flagging="never",
157
  )
158
+ """
159
 
160
  with demo:
161
  gr.TabbedInterface(