Omnibus commited on
Commit
639f6be
·
1 Parent(s): 42702fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -586,10 +586,10 @@ with gr.Blocks() as bc:
586
  chain_json_rec = gr.JSON()
587
 
588
  def res_bc():
589
- a,b,c=blockchain.reset
590
- return (a,b,c)
591
 
592
- reset_blockchain.click(create_chain,["chain1.json"],[block_text,json_out,chain_json])
593
  reset_source.click(res_source,None,block_text)
594
 
595
  send_trans.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec,send,rec,trans_data])
 
586
  chain_json_rec = gr.JSON()
587
 
588
  def res_bc():
589
+ blockchain.reset(create="chain1.json")
590
+
591
 
592
+ reset_blockchain.click(res_bc,None,None)
593
  reset_source.click(res_source,None,block_text)
594
 
595
  send_trans.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send,json_out_rec,chain_json_send,chain_json_rec,trans_data_send,trans_data_rec,block_text_send,block_text_rec,send,rec,trans_data])