Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,12 +4,15 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
|
| 6 |
with gr.Blocks() as app:
|
| 7 |
-
with gr.
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
app.launch()
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
with gr.Blocks() as app:
|
| 7 |
+
with gr.Row():
|
| 8 |
+
gr.Column()
|
| 9 |
+
with gr.Column():
|
| 10 |
+
with gr.Group():
|
| 11 |
+
dec_seed = gr.Textbox(label='Password')
|
| 12 |
+
mes_in = gr.Image(label="Message", type="filepath")
|
| 13 |
+
priv_key_in = gr.Image(label="Private Key", type="filepath")
|
| 14 |
+
rsa_dec_btn = gr.Button("RSA Decrypt")
|
| 15 |
+
rsa_dec_mes = gr.Textbox(label="decoded")
|
| 16 |
+
rsa_dec_btn.click(de_crypt.decrypt_text,[mes_in,priv_key_in,dec_seed],rsa_dec_mes)
|
| 17 |
+
gr.Column()
|
| 18 |
app.launch()
|