Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,34 +116,27 @@ with gr.Blocks() as app:
|
|
| 116 |
with gr.Row():
|
| 117 |
gr.Column()
|
| 118 |
with gr.Column():
|
| 119 |
-
with gr.
|
| 120 |
-
with gr.
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
with gr.Tab("Decrypt"):
|
| 142 |
-
mes_in = gr.Image(label="Message", type="filepath")
|
| 143 |
-
priv_key_in = gr.Image(label="Private Key", type="filepath")
|
| 144 |
-
|
| 145 |
-
rsa_dec_btn = gr.Button("RSA Decrypt")
|
| 146 |
-
rsa_dec_mes = gr.Textbox(label="decoded")
|
| 147 |
gr.Column()
|
| 148 |
|
| 149 |
gen_wal_btn.click(generate_keys,None,[out2,out1, img3,out3,img1,img2])
|
|
|
|
| 116 |
with gr.Row():
|
| 117 |
gr.Column()
|
| 118 |
with gr.Column():
|
| 119 |
+
with gr.Row():
|
| 120 |
+
with gr.Tab("Gen Wal"):
|
| 121 |
+
gen_wal_btn=gr.Button()
|
| 122 |
+
seed = gr.Textbox(label='Seed Phrase')
|
| 123 |
+
img1=gr.Pil(label='Private Key')
|
| 124 |
+
out1 = gr.Textbox(label='Private Key',max_lines=4)
|
| 125 |
+
img2=gr.Pil(label='Public Key')
|
| 126 |
+
out2 = gr.Textbox(label='Public Key',max_lines=4)
|
| 127 |
+
img3=gr.Pil(label='Address')
|
| 128 |
+
out3 = gr.Textbox(label='Address')
|
| 129 |
+
with gr.Tab("Encrypt"):
|
| 130 |
+
rsa_to_enc = gr.Textbox(label="txt to encrypt")
|
| 131 |
+
pub_key_in = gr.Image(label="Public Key", type="filepath")
|
| 132 |
+
rsa_enc_btn = gr.Button("RSA Encrypt")
|
| 133 |
+
rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
|
| 134 |
+
qr_enc_mes = gr.Image(type="filepath")
|
| 135 |
+
with gr.Tab("Decrypt"):
|
| 136 |
+
mes_in = gr.Image(label="Message", type="filepath")
|
| 137 |
+
priv_key_in = gr.Image(label="Private Key", type="filepath")
|
| 138 |
+
rsa_dec_btn = gr.Button("RSA Decrypt")
|
| 139 |
+
rsa_dec_mes = gr.Textbox(label="decoded")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
gr.Column()
|
| 141 |
|
| 142 |
gen_wal_btn.click(generate_keys,None,[out2,out1, img3,out3,img1,img2])
|