Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -586,10 +586,10 @@ with gr.Blocks() as bc:
|
|
| 586 |
chain_json_rec = gr.JSON()
|
| 587 |
|
| 588 |
def res_bc():
|
| 589 |
-
|
| 590 |
-
|
| 591 |
|
| 592 |
-
reset_blockchain.click(
|
| 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])
|