Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def add_new_eval(
|
|
| 71 |
cur_file = os.path.join(filename, file)
|
| 72 |
if os.path.isdir(cur_file):
|
| 73 |
for subfile in os.listdir(cur_file):
|
| 74 |
-
if
|
| 75 |
with open(os.path.join(cur_file, subfile)) as ff:
|
| 76 |
cur_json = json.load(ff)
|
| 77 |
print(file, type(cur_json))
|
|
@@ -93,6 +93,7 @@ def add_new_eval(
|
|
| 93 |
new_data = [
|
| 94 |
model_name
|
| 95 |
]
|
|
|
|
| 96 |
for key in TASK_INFO:
|
| 97 |
if key in upload_data:
|
| 98 |
new_data.append(upload_data[key])
|
|
|
|
| 71 |
cur_file = os.path.join(filename, file)
|
| 72 |
if os.path.isdir(cur_file):
|
| 73 |
for subfile in os.listdir(cur_file):
|
| 74 |
+
if subfile.endswith(".json"):
|
| 75 |
with open(os.path.join(cur_file, subfile)) as ff:
|
| 76 |
cur_json = json.load(ff)
|
| 77 |
print(file, type(cur_json))
|
|
|
|
| 93 |
new_data = [
|
| 94 |
model_name
|
| 95 |
]
|
| 96 |
+
print('upload_data':, upload_data)
|
| 97 |
for key in TASK_INFO:
|
| 98 |
if key in upload_data:
|
| 99 |
new_data.append(upload_data[key])
|