Commit
•
c93db71
1
Parent(s):
282462f
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def get_text(url):
|
|
31 |
result = model.transcribe(a)
|
32 |
return result['text'].strip()
|
33 |
else:
|
34 |
-
logging.error('Videos for transcription on this
|
35 |
#finally:
|
36 |
# raise gr.Error("Exception: There was a problem transcribing the audio.")
|
37 |
|
@@ -42,11 +42,10 @@ def get_summary(article):
|
|
42 |
return b
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
-
gr.Markdown("<h1><center>Free Fast YouTube URL Video-to-Text
|
46 |
#gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video and then create a summary of the video transcript.</center>")
|
47 |
gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video.</center>")
|
48 |
-
gr.Markdown("<center
|
49 |
-
gr.Markdown("<center>Transcription takes 5-10 seconds per minute of the video (bad audio/hard accents slow it down a bit). #patience<br />If you have time while waiting, drop a ♥️ and check out my <a href=https://www.artificial-intelligence.blog target=_blank>AI blog</a> (opens in new tab).</center>")
|
50 |
|
51 |
input_text_url = gr.Textbox(placeholder='Youtube video URL', label='YouTube URL')
|
52 |
result_button_transcribe = gr.Button('Transcribe')
|
|
|
31 |
result = model.transcribe(a)
|
32 |
return result['text'].strip()
|
33 |
else:
|
34 |
+
logging.error('Videos for transcription on this demo are limited to about 1.5 hours.')
|
35 |
#finally:
|
36 |
# raise gr.Error("Exception: There was a problem transcribing the audio.")
|
37 |
|
|
|
42 |
return b
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
+
gr.Markdown("<h1><center>Free Fast YouTube URL Video-to-Text")
|
46 |
#gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video and then create a summary of the video transcript.</center>")
|
47 |
gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video.</center>")
|
48 |
+
gr.Markdown("<center>Transcription takes 5-10 seconds per minute of the video (bad audio/hard accents slow it down a bit).</center>")
|
|
|
49 |
|
50 |
input_text_url = gr.Textbox(placeholder='Youtube video URL', label='YouTube URL')
|
51 |
result_button_transcribe = gr.Button('Transcribe')
|