Omnibus commited on
Commit
efdf194
·
1 Parent(s): 5ce5d82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -5
app.py CHANGED
@@ -10,12 +10,11 @@ import qr
10
  import stegan
11
  import json
12
 
13
- eth_wal = gr.Interface.load("spaces/Omnibus/decentral-test")
14
 
15
  def eth_create():
16
- out = eth_wal()
17
- out = eth_wal().eth_wal(out)
18
- print(out)
19
 
20
  def trans_block(sender,recipient,amount):
21
  transaction = [{
@@ -227,8 +226,22 @@ with gr.Blocks() as app:
227
  text_output = gr.Text(label="Output",visible=False)
228
  with gr.Tab("Gen Wal"):
229
  gen_wal_btn=gr.Button()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  gr.Column()
231
- gen_wal_btn.click(eth_create,None,None)
232
  dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
233
  en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
234
  url_btn.click(fn=predict, inputs=[text_input,url_params],outputs=[text_output,url_params], _js=get_window_url_params)
 
10
  import stegan
11
  import json
12
 
13
+ eth_wal = gr.Interface.load("spaces/Omnibus/decentral-test-mod")
14
 
15
  def eth_create():
16
+ priv,pub,addr,img1,img2,img3,cnt1,cnt2,cnt3,seed = eth_wal()
17
+ return priv,pub,addr,img1,img2,img3,cnt1,cnt2,cnt3,seed
 
18
 
19
  def trans_block(sender,recipient,amount):
20
  transaction = [{
 
226
  text_output = gr.Text(label="Output",visible=False)
227
  with gr.Tab("Gen Wal"):
228
  gen_wal_btn=gr.Button()
229
+
230
+ with gr.Row():
231
+ with gr.Column():
232
+ img1=gr.Pil()
233
+ out1 = gr.Textbox(label='Private Key')
234
+ out11 = gr.Textbox(label='count')
235
+ with gr.Column():
236
+ img2=gr.Pil()
237
+ out2 = gr.Textbox(label='Public Key')
238
+ out22 = gr.Textbox(label='count')
239
+ with gr.Column():
240
+ img3=gr.Pil()
241
+ out3 = gr.Textbox(label='Address')
242
+ out33 = gr.Textbox(label='count')
243
  gr.Column()
244
+ gen_wal_btn.click(eth_create,None,[out1,out2,out3,img1,img2,img3,out11,out22,out33])
245
  dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
246
  en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
247
  url_btn.click(fn=predict, inputs=[text_input,url_params],outputs=[text_output,url_params], _js=get_window_url_params)