Spaces:
Running
Running
kz-transformers
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -197,8 +197,10 @@ def update_board():
|
|
197 |
data_list = []
|
198 |
for file in glob.glob("./m_data/model_data/external/*.json"):
|
199 |
with open(file) as f:
|
|
|
200 |
try:
|
201 |
data = json.load(f)
|
|
|
202 |
data_list.append(data)
|
203 |
except Exception as e:
|
204 |
pass # data was badly formatted, should not fail
|
|
|
197 |
data_list = []
|
198 |
for file in glob.glob("./m_data/model_data/external/*.json"):
|
199 |
with open(file) as f:
|
200 |
+
print(f'trying to read external submit file: {file}')
|
201 |
try:
|
202 |
data = json.load(f)
|
203 |
+
print(f'succeed to read: {file}, got {len(data)}')
|
204 |
data_list.append(data)
|
205 |
except Exception as e:
|
206 |
pass # data was badly formatted, should not fail
|