Omnibus commited on
Commit
cd033af
·
1 Parent(s): e02f6b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -406,7 +406,16 @@ def res_source():
406
  return "__Source__ Reset"
407
  except Exception as e:
408
  return e
409
-
 
 
 
 
 
 
 
 
 
410
  with gr.Blocks() as bc:
411
  with gr.Row(visible=True) as invalid:
412
  pass_box = gr.Textbox()
 
406
  return "__Source__ Reset"
407
  except Exception as e:
408
  return e
409
+ f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
410
+ send_list =[]
411
+ for i,ea in enumerate(f_ist):
412
+ if "balance/" in ea:
413
+ try:
414
+ send_list.append(ea.split("/",1)[1].split(".",1)[0])
415
+ except Exception:
416
+ pass
417
+
418
+
419
  with gr.Blocks() as bc:
420
  with gr.Row(visible=True) as invalid:
421
  pass_box = gr.Textbox()