Omnibus commited on
Commit
ca28b77
·
1 Parent(s): c4a4631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -563,8 +563,15 @@ with gr.Blocks() as bc:
563
  node_add=gr.Button("Add Node")
564
  with gr.Accordion("Tokens", open=False):
565
  with gr.Row():
566
- issue_btn=gr.Button()
567
- reset_source=gr.Button("Reset")
 
 
 
 
 
 
 
568
  out_box_bool=gr.Textbox()
569
  with gr.Row():
570
  with gr.Column():
@@ -577,10 +584,11 @@ with gr.Blocks() as bc:
577
  trans_data_rec = gr.Dataframe()
578
  json_out_rec = gr.JSON()
579
  chain_json_rec = gr.JSON()
580
- reset_source.click(res_source,None,block_text)
581
 
 
 
 
582
  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])
583
-
584
  issue_btn.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])
585
  #issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
586
 
 
563
  node_add=gr.Button("Add Node")
564
  with gr.Accordion("Tokens", open=False):
565
  with gr.Row():
566
+ with gr.Column():
567
+ issue_btn=gr.Button()
568
+ with gr.Column():
569
+ with gr.Row():
570
+ reset_blockchain=gr.Button("Reset Main Blockchain")
571
+ reset_source=gr.Button("Reset __Source__")
572
+ with gr.Row():
573
+ reset_sender=gr.Button("Reset Sender")
574
+ reset_recieve=gr.Button("Reset Recipient")
575
  out_box_bool=gr.Textbox()
576
  with gr.Row():
577
  with gr.Column():
 
584
  trans_data_rec = gr.Dataframe()
585
  json_out_rec = gr.JSON()
586
  chain_json_rec = gr.JSON()
 
587
 
588
+ reset_blockchain.click(blockchain.reset(),None,[block_text,json_out,chain_json])
589
+ reset_source.click(res_source,None,block_text)
590
+
591
  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])
 
592
  issue_btn.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])
593
  #issue_btn.click(issue_tokens,[send,rec,am],[block_text,out_box_bool,json_out_send])
594