Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -408,6 +408,8 @@ def res_source():
|
|
408 |
return "__Source__ Reset"
|
409 |
except Exception as e:
|
410 |
return e
|
|
|
|
|
411 |
def update_send_list():
|
412 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
413 |
send_list =[]
|
@@ -417,7 +419,8 @@ def update_send_list():
|
|
417 |
send_list.append(ea.split("/",1)[1].split(".",1)[0])
|
418 |
except Exception:
|
419 |
pass
|
420 |
-
|
|
|
421 |
|
422 |
def update_rec_list():
|
423 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
@@ -429,8 +432,8 @@ def update_rec_list():
|
|
429 |
rec_list.append(ea.split("/",1)[1].split(".",1)[0])
|
430 |
except Exception:
|
431 |
pass
|
432 |
-
|
433 |
-
|
434 |
|
435 |
with gr.Blocks() as bc:
|
436 |
with gr.Row(visible=True) as invalid:
|
|
|
408 |
return "__Source__ Reset"
|
409 |
except Exception as e:
|
410 |
return e
|
411 |
+
|
412 |
+
|
413 |
def update_send_list():
|
414 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
415 |
send_list =[]
|
|
|
419 |
send_list.append(ea.split("/",1)[1].split(".",1)[0])
|
420 |
except Exception:
|
421 |
pass
|
422 |
+
return send_list
|
423 |
+
send_list = update_send_list()
|
424 |
|
425 |
def update_rec_list():
|
426 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
|
|
432 |
rec_list.append(ea.split("/",1)[1].split(".",1)[0])
|
433 |
except Exception:
|
434 |
pass
|
435 |
+
return rec_list
|
436 |
+
rec_list = update_rec_list()
|
437 |
|
438 |
with gr.Blocks() as bc:
|
439 |
with gr.Row(visible=True) as invalid:
|