Omnibus commited on
Commit
4c0240d
·
1 Parent(s): 496f1c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -470,7 +470,7 @@ def issue_tokens(send,rec,amount):
470
  repo = main_balance.split('datasets/',1)[1].split('/raw',1)[0].split('/',1)[0]
471
  name = main_balance.split('datasets/',1)[1].split('/raw',1)[0].split('/',1)[1]
472
 
473
- f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
474
  with gr.Blocks() as bc:
475
  with gr.Row(visible=True) as invalid:
476
  pass_box = gr.Textbox()
@@ -488,7 +488,7 @@ with gr.Blocks() as bc:
488
  with gr.Row():
489
  in_chain_btn=gr.Button("Load Chain")
490
  create_bc = gr.Button("Create New Blockchain")
491
- send=gr.Textbox(label="Sender")
492
  send = gr.Dropdown(label="Sender", choices=[f for f in f_ist], value = "Bank")
493
  rec=gr.Textbox(label="Recipient")
494
  am=gr.Textbox(label="Amount")
 
470
  repo = main_balance.split('datasets/',1)[1].split('/raw',1)[0].split('/',1)[0]
471
  name = main_balance.split('datasets/',1)[1].split('/raw',1)[0].split('/',1)[1]
472
 
473
+ f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}/balance', repo_type="dataset"))
474
  with gr.Blocks() as bc:
475
  with gr.Row(visible=True) as invalid:
476
  pass_box = gr.Textbox()
 
488
  with gr.Row():
489
  in_chain_btn=gr.Button("Load Chain")
490
  create_bc = gr.Button("Create New Blockchain")
491
+ #send=gr.Textbox(label="Sender")
492
  send = gr.Dropdown(label="Sender", choices=[f for f in f_ist], value = "Bank")
493
  rec=gr.Textbox(label="Recipient")
494
  am=gr.Textbox(label="Amount")