Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,6 @@ def print_files_and_sizes(directory):
|
|
| 47 |
file_size = os.path.getsize(file_path)
|
| 48 |
print(f"File: {file_path} Size: {file_size} bytes")
|
| 49 |
|
| 50 |
-
print_files_and_sizes('./CTFAIA')
|
| 51 |
-
|
| 52 |
def get_all_folders(directory):
|
| 53 |
folders = []
|
| 54 |
for item in os.listdir(directory):
|
|
@@ -144,6 +142,7 @@ def add_new_eval(
|
|
| 144 |
|
| 145 |
# Gold answers
|
| 146 |
gold_results = {}
|
|
|
|
| 147 |
gold_dataset = load_dataset('./CTFAIA/' + dataset_version)
|
| 148 |
gold_results = {split: {row["task_name"]: row for row in gold_dataset[split]} for split in ["test", "validation"]}
|
| 149 |
|
|
|
|
| 47 |
file_size = os.path.getsize(file_path)
|
| 48 |
print(f"File: {file_path} Size: {file_size} bytes")
|
| 49 |
|
|
|
|
|
|
|
| 50 |
def get_all_folders(directory):
|
| 51 |
folders = []
|
| 52 |
for item in os.listdir(directory):
|
|
|
|
| 142 |
|
| 143 |
# Gold answers
|
| 144 |
gold_results = {}
|
| 145 |
+
print_files_and_sizes('./CTFAIA/' + dataset_version)
|
| 146 |
gold_dataset = load_dataset('./CTFAIA/' + dataset_version)
|
| 147 |
gold_results = {split: {row["task_name"]: row for row in gold_dataset[split]} for split in ["test", "validation"]}
|
| 148 |
|