Spaces:
Sleeping
Sleeping
Ahmad Hammoudeh
commited on
Commit
·
3d040bf
1
Parent(s):
6030892
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,8 +159,15 @@ 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('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)
|
|
|
|
| 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 |
+
User_password = gr.Textbox(placeholder='Password', label='User password')
|
| 163 |
result_button_encrypt = gr.Button('Encrypt')
|
| 164 |
result_button_decrypt = gr.Button('Decrypt')
|
| 165 |
+
vc_f0method = gr.Radio(
|
| 166 |
+
label="Encrypt or Decrypt",
|
| 167 |
+
choices=["Encrypt", "Decrypt"],
|
| 168 |
+
value="Encrypt",
|
| 169 |
+
interactive=True,
|
| 170 |
+
)
|
| 171 |
output_text = gr.Textbox(placeholder='Output message', label='Encrypte')
|
| 172 |
|
| 173 |
result_button_encrypt.click(Encrypt_users_txt, inputs = input_text, outputs = output_text)
|