Spaces:
Runtime error
Runtime error
Update chatchain.py
Browse files- chatchain.py +1 -1
chatchain.py
CHANGED
@@ -30,7 +30,7 @@ def update_rec_list(main_chain):
|
|
30 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
31 |
rec_list =[]
|
32 |
for i,ea in enumerate(f_ist):
|
33 |
-
if "
|
34 |
try:
|
35 |
if not "__Source__" in ea:
|
36 |
rec_list.append(ea.split("/",1)[1].split(".",1)[0])
|
|
|
30 |
f_ist = (api.list_repo_files(repo_id=f'{repo}/{name}', repo_type="dataset"))
|
31 |
rec_list =[]
|
32 |
for i,ea in enumerate(f_ist):
|
33 |
+
if "chat/" in ea:
|
34 |
try:
|
35 |
if not "__Source__" in ea:
|
36 |
rec_list.append(ea.split("/",1)[1].split(".",1)[0])
|