Omnibus commited on
Commit
e76c24e
·
1 Parent(s): b8b5504

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import de_crypt
2
+ import gradio as gr
3
+
4
+
5
+
6
+ with gr.Blocks() as app:
7
+ with gr.Group():
8
+ dec_seed = gr.Textbox(label='Password')
9
+ mes_in = gr.Image(label="Message", type="filepath")
10
+ priv_key_in = gr.Image(label="Private Key", type="filepath")
11
+ rsa_dec_btn = gr.Button("RSA Decrypt")
12
+ rsa_dec_mes = gr.Textbox(label="decoded")
13
+ rsa_dec_btn.click(crypt.decrypt_text,[mes_in,priv_key_in,dec_seed],rsa_dec_mes)
14
+
15
+ app.launch()