Ahmad Hammoudeh commited on
Commit
6030892
·
1 Parent(s): 40906f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -159,10 +159,12 @@ with gr.Blocks() as demo:
159
  #gr.Markdown("<center><b>'Whisper is a neural net that approaches human level robustness and accuracy on English speech recognition.'</b></center>")
160
  #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>")
161
  input_text = gr.Textbox(placeholder='Message', label='User message')
162
- result_button_encrypt = gr.Button('Encrypte')
163
- result_button_decrypt = gr.Button('Decrypte')
164
- output_text_encrypt = gr.Textbox(placeholder='Encrypted message', label='Encrypt')
165
- result_button_encrypt.click(Encrypt_users_txt, inputs = input_text, outputs = output_text_encrypt)
 
 
166
 
167
  demo.queue(default_enabled = True).launch(debug = True)
168
 
 
159
  #gr.Markdown("<center><b>'Whisper is a neural net that approaches human level robustness and accuracy on English speech recognition.'</b></center>")
160
  #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>")
161
  input_text = gr.Textbox(placeholder='Message', label='User message')
162
+ result_button_encrypt = gr.Button('Encrypt')
163
+ result_button_decrypt = gr.Button('Decrypt')
164
+ output_text = gr.Textbox(placeholder='Output message', label='Encrypte')
165
+
166
+ result_button_encrypt.click(Encrypt_users_txt, inputs = input_text, outputs = output_text)
167
+ result_button_decrypt.click(Decrypt_users_txt, inputs = input_text, outputs = output_text)
168
 
169
  demo.queue(default_enabled = True).launch(debug = True)
170