trhacknon commited on
Commit
8367522
1 Parent(s): 742752a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -42,8 +42,8 @@ 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>")
@@ -52,10 +52,10 @@ with gr.Blocks() as demo:
52
  result_button_transcribe = gr.Button('Transcribe')
53
  output_text_transcribe = gr.Textbox(placeholder='Transcript of the YouTube video.', label='Transcript')
54
 
55
- #result_button_summary = gr.Button('2. Create Summary')
56
- #output_text_summary = gr.Textbox(placeholder='Summary of the YouTube video transcript.', label='Summary')
57
 
58
  result_button_transcribe.click(get_text, inputs = input_text_url, outputs = output_text_transcribe)
59
- #result_button_summary.click(get_summary, inputs = output_text_transcribe, outputs = output_text_summary)
60
 
61
  demo.queue(default_enabled = True).launch(debug = True)
 
42
  return b
43
 
44
  with gr.Blocks() as demo:
45
+ gr.Markdown("<h1><center>Free Fast YouTube URL Video-to-Text by TRHACKNON 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>")
 
52
  result_button_transcribe = gr.Button('Transcribe')
53
  output_text_transcribe = gr.Textbox(placeholder='Transcript of the YouTube video.', label='Transcript')
54
 
55
+ result_button_summary = gr.Button('2. Create Summary')
56
+ output_text_summary = gr.Textbox(placeholder='Summary of the YouTube video transcript.', label='Summary')
57
 
58
  result_button_transcribe.click(get_text, inputs = input_text_url, outputs = output_text_transcribe)
59
+ result_button_summary.click(get_summary, inputs = output_text_transcribe, outputs = output_text_summary)
60
 
61
  demo.queue(default_enabled = True).launch(debug = True)