Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -445,7 +445,14 @@ def res_source():
|
|
| 445 |
except Exception as e:
|
| 446 |
return e
|
| 447 |
|
| 448 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 449 |
|
| 450 |
with gr.Blocks() as bc:
|
| 451 |
with gr.Row(visible=True) as invalid:
|
|
|
|
| 445 |
except Exception as e:
|
| 446 |
return e
|
| 447 |
|
| 448 |
+
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
| 449 |
+
send_list =[]
|
| 450 |
+
for i,ea in enumerate(f_ist):
|
| 451 |
+
if "balance/" in ea:
|
| 452 |
+
try:
|
| 453 |
+
send_list.append(ea.split("/",1)[1].split(".",1)[0])
|
| 454 |
+
except Exception:
|
| 455 |
+
pass
|
| 456 |
|
| 457 |
with gr.Blocks() as bc:
|
| 458 |
with gr.Row(visible=True) as invalid:
|