Existance commited on
Commit
3c9b0c2
·
1 Parent(s): 7f73c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def _return_yt_html_embed(yt_url):
17
  )
18
  return HTML_str
19
 
20
- def yt_transcribe(yt_url, task, max_filesize=75.0):
21
  html_embed_str = _return_yt_html_embed(yt_url)
22
 
23
  # with tempfile.TemporaryDirectory() as tmpdirname:
@@ -35,11 +35,13 @@ def yt_transcribe(yt_url, task, max_filesize=75.0):
35
 
36
  demo = gr.Blocks()
37
 
 
 
38
  yt_transcribe = gr.Interface(
39
  fn=yt_transcribe,
40
  inputs=[
41
  # gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
42
- gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
43
  # gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
44
  ],
45
  # outputs=["html", "text"],
 
17
  )
18
  return HTML_str
19
 
20
+ def yt_transcribe(yt_url, max_filesize=75.0):
21
  html_embed_str = _return_yt_html_embed(yt_url)
22
 
23
  # with tempfile.TemporaryDirectory() as tmpdirname:
 
35
 
36
  demo = gr.Blocks()
37
 
38
+ url = gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
39
+
40
  yt_transcribe = gr.Interface(
41
  fn=yt_transcribe,
42
  inputs=[
43
  # gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
44
+ url
45
  # gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
46
  ],
47
  # outputs=["html", "text"],