Ahmad Hammoudeh commited on
Commit
18394f7
·
1 Parent(s): c41f1ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -145,3 +145,23 @@ result_button_encrypt.click(greet, inputs = "text", outputs = "text")
145
 
146
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
147
  iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
147
  iface.launch()
148
+
149
+
150
+
151
+ with gr.Blocks() as demo:
152
+ #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>")
153
+ #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>")
154
+ #gr.Markdown("<center>Enter the link of any YouTube video to generate a text transcript of the video.</center>")
155
+ #gr.Markdown("<center><b>'Whisper is a neural net that approaches human level robustness and accuracy on English speech recognition.'</b></center>")
156
+ #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>")
157
+
158
+ input_text_enc = gr.Textbox(placeholder='Message', label='User message')
159
+ result_button_encrypt = gr.Button('Encrypte')
160
+ output_text_encrypt = gr.Textbox(placeholder='Encrypted message', label='Encrypt')
161
+ result_button_encrypt.click(greet, inputs = input_text_enc, outputs = output_text_encrypt)
162
+
163
+ demo.queue(default_enabled = True).launch(debug = True)
164
+
165
+
166
+
167
+