Omnibus commited on
Commit
5d5df1b
·
1 Parent(s): 477af2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -129,7 +129,8 @@ with gr.Blocks() as app:
129
  mes_in = gr.Image(label="Message", type="filepath")
130
  priv_key_in = gr.Image(label="Private Key", type="filepath")
131
  rsa_dec_btn = gr.Button("RSA Decrypt")
132
- rsa_dec_mes = gr.Textbox(label="decoded")
 
133
  gr.Column()
134
  def test_fn(im):
135
  return (im)
@@ -149,7 +150,7 @@ with gr.Blocks() as app:
149
  send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
150
 
151
 
152
- input_key.change(crypt.address,input_key,sender).then(chatchain.update_rec_list,main_chain,rec)
153
  pass_btn.click(checkp,pass_box,[invalid,valida])
154
 
155
  gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])
 
129
  mes_in = gr.Image(label="Message", type="filepath")
130
  priv_key_in = gr.Image(label="Private Key", type="filepath")
131
  rsa_dec_btn = gr.Button("RSA Decrypt")
132
+ rsa_dec_mes = gr.Textbox(label="decoded")
133
+ in_chain=gr.Textbox(value=main_chain,visible=False)
134
  gr.Column()
135
  def test_fn(im):
136
  return (im)
 
150
  send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
151
 
152
 
153
+ input_key.change(crypt.address,input_key,sender).then(chatchain.update_rec_list,in_chain,rec)
154
  pass_btn.click(checkp,pass_box,[invalid,valida])
155
 
156
  gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])