File size: 615 Bytes
e76c24e
 
 
 
 
 
9bad6d3
 
 
 
 
 
 
 
 
 
 
e76c24e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import de_crypt
import gradio as gr



with gr.Blocks() as app:
    with gr.Row():
        gr.Column()
        with gr.Column():
            with gr.Group():
                dec_seed = gr.Textbox(label='Password')
                mes_in = gr.Image(label="Message", type="filepath")
                priv_key_in = gr.Image(label="Private Key", type="filepath")
                rsa_dec_btn = gr.Button("RSA Decrypt")
                rsa_dec_mes = gr.Textbox(label="decoded")
            rsa_dec_btn.click(de_crypt.decrypt_text,[mes_in,priv_key_in,dec_seed],rsa_dec_mes)                
        gr.Column()
app.launch()