MarkoVidrih commited on
Commit
c93db71
1 Parent(s): 282462f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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 space are limited to about 1.5 hours. Sorry about this limit but some joker thought they could stop this tool from working by transcribing many extremely long videos. Please visit https://steve.digital to contact me about this space.')
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 using <a href=https://openai.com/blog/whisper/ target=_blank>OpenAI's Whisper</a> Model</center></h1>")
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><b>'Whisper is a neural net that approaches human level robustness and accuracy on English speech recognition.'</b></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')