Omnibus commited on
Commit
058c475
·
1 Parent(s): c453ab0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -261,6 +261,16 @@ with gr.Blocks() as app:
261
  rsa_dec_mes = gr.Textbox(label="decoded")
262
  in_chain=gr.Textbox(value=main_chain,visible=False)
263
  gr.Column()
 
 
 
 
 
 
 
 
 
 
264
  def test_fn(im):
265
  return (im)
266
  def create_new_chain(address,pub_key,im):
@@ -281,7 +291,7 @@ with gr.Blocks() as app:
281
  send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
282
 
283
 
284
- input_key.change(crypt.address,input_key,sender).then(rec_list_up,in_chain,rec)
285
  pass_btn.click(checkp,pass_box,[invalid,valida])
286
 
287
  gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,out2,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])
 
261
  rsa_dec_mes = gr.Textbox(label="decoded")
262
  in_chain=gr.Textbox(value=main_chain,visible=False)
263
  gr.Column()
264
+
265
+
266
+
267
+
268
+
269
+ def display_messages(im):
270
+ address,key=crypt.address(im)
271
+ response, message_out = get_my_chain_send(address)
272
+ return (address,message_out,response)
273
+
274
  def test_fn(im):
275
  return (im)
276
  def create_new_chain(address,pub_key,im):
 
291
  send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
292
 
293
 
294
+ input_key.change(display_messages,input_key,[sender,block_text,response_json]).then(rec_list_up,in_chain,rec)
295
  pass_btn.click(checkp,pass_box,[invalid,valida])
296
 
297
  gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,out2,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])