Spaces:
Sleeping
Sleeping
Ahmad Hammoudeh commited on
Commit ·
739c97e
1
Parent(s): 18394f7
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,11 +140,11 @@ def greet(Txt):
|
|
| 140 |
encMessage = Encrypt_msg(User_message=Txt,user_password='',path='')
|
| 141 |
return "Hello " + encMessage + "!!"
|
| 142 |
|
| 143 |
-
result_button_encrypt = gr.Button('Encrypt')
|
| 144 |
-
result_button_encrypt.click(greet, inputs = "text", outputs = "text")
|
| 145 |
|
| 146 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 147 |
-
iface.launch()
|
| 148 |
|
| 149 |
|
| 150 |
|
|
@@ -154,7 +154,6 @@ with gr.Blocks() as demo:
|
|
| 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')
|
|
|
|
| 140 |
encMessage = Encrypt_msg(User_message=Txt,user_password='',path='')
|
| 141 |
return "Hello " + encMessage + "!!"
|
| 142 |
|
| 143 |
+
#result_button_encrypt = gr.Button('Encrypt')
|
| 144 |
+
#result_button_encrypt.click(greet, inputs = "text", outputs = "text")
|
| 145 |
|
| 146 |
+
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 147 |
+
#iface.launch()
|
| 148 |
|
| 149 |
|
| 150 |
|
|
|
|
| 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 |
input_text_enc = gr.Textbox(placeholder='Message', label='User message')
|
| 158 |
result_button_encrypt = gr.Button('Encrypte')
|
| 159 |
output_text_encrypt = gr.Textbox(placeholder='Encrypted message', label='Encrypt')
|