Spaces:
Sleeping
Sleeping
Ahmad Hammoudeh
commited on
Commit
·
6030892
1
Parent(s):
40906f8
Update app.py
Browse files
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('
|
| 163 |
-
result_button_decrypt = gr.Button('
|
| 164 |
-
|
| 165 |
-
|
|
|
|
|
|
|
| 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 |
|