Omnibus's picture
Update app.py
9bad6d3
raw
history blame contribute delete
615 Bytes
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()