Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -584,8 +584,12 @@ with gr.Blocks() as bc:
|
|
584 |
trans_data_rec = gr.Dataframe()
|
585 |
json_out_rec = gr.JSON()
|
586 |
chain_json_rec = gr.JSON()
|
|
|
|
|
|
|
|
|
587 |
|
588 |
-
reset_blockchain.click(
|
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])
|
|
|
584 |
trans_data_rec = gr.Dataframe()
|
585 |
json_out_rec = gr.JSON()
|
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(res_bc,None,[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])
|