Omnibus commited on
Commit
f16b61d
1 Parent(s): 35ff3aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -28
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.Tab("Gen Wal"):
120
- with gr.Box():
121
- with gr.Column():
122
- gen_wal_btn=gr.Button()
123
- seed = gr.Textbox(label='Seed Phrase')
124
- img1=gr.Pil(label='Private Key')
125
- out1 = gr.Textbox(label='Private Key',max_lines=4)
126
- img2=gr.Pil(label='Public Key')
127
- out2 = gr.Textbox(label='Public Key',max_lines=4)
128
- img3=gr.Pil(label='Address')
129
- out3 = gr.Textbox(label='Address')
130
-
131
-
132
- with gr.Tab("Encrypt"):
133
-
134
- rsa_to_enc = gr.Textbox(label="txt to encrypt")
135
- pub_key_in = gr.Image(label="Public Key", type="filepath")
136
- rsa_enc_btn = gr.Button("RSA Encrypt")
137
- rsa_enc_mes = gr.Textbox(label="encoded", max_lines=4)
138
- qr_enc_mes = gr.Image(type="filepath")
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])