Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ with gr.Blocks() as app:
|
|
| 12 |
with gr.Tab("Encrypt"):
|
| 13 |
rsa_to_enc = gr.Textbox(label="Message to Encrypt",lines=3)
|
| 14 |
pub_key_in = gr.Image(label="Public Key", type="filepath")
|
| 15 |
-
|
| 16 |
rsa_enc_btn = gr.Button("RSA Encrypt")
|
| 17 |
rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
|
| 18 |
qr_enc_mes = gr.Image(type="filepath")
|
|
@@ -26,7 +26,7 @@ with gr.Blocks() as app:
|
|
| 26 |
diff_im = gr.Gallery()
|
| 27 |
im_choice=gr.Image(label='Place image here',type='filepath')
|
| 28 |
gr.Column()
|
| 29 |
-
rsa_enc_btn.click(pe.encrypt_text,[rsa_to_enc,pub_key_in,
|
| 30 |
diff_btn.click(go.send_it,[inp,model,cnt],diff_im)
|
| 31 |
|
| 32 |
app.launch()
|
|
|
|
| 12 |
with gr.Tab("Encrypt"):
|
| 13 |
rsa_to_enc = gr.Textbox(label="Message to Encrypt",lines=3)
|
| 14 |
pub_key_in = gr.Image(label="Public Key", type="filepath")
|
| 15 |
+
priv_key_in = gr.Image(label="Private Key(sig)", type="filepath")
|
| 16 |
rsa_enc_btn = gr.Button("RSA Encrypt")
|
| 17 |
rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
|
| 18 |
qr_enc_mes = gr.Image(type="filepath")
|
|
|
|
| 26 |
diff_im = gr.Gallery()
|
| 27 |
im_choice=gr.Image(label='Place image here',type='filepath')
|
| 28 |
gr.Column()
|
| 29 |
+
rsa_enc_btn.click(pe.encrypt_text,[rsa_to_enc,pub_key_in,priv_key_in],[rsa_enc_mes,qr_enc_mes])
|
| 30 |
diff_btn.click(go.send_it,[inp,model,cnt],diff_im)
|
| 31 |
|
| 32 |
app.launch()
|