Spaces:
Runtime error
Runtime error
Terry Zhuo commited on
Commit ·
7f77e31
1
Parent(s): 9f3c532
update
Browse files20 unmodified lines212223242425262721 unmodified lines495051525253545556575891 unmodified lines15015115215015315415515620 unmodified lines): command = [default_command] if jsonl_file.name is not None: if jsonl_file is not None: # Copy the uploaded file to the current directory local_filename = os.path.basename(jsonl_file.name) shutil.copy(jsonl_file.name, local_filename)21 unmodified lines
def cleanup_previous_files(jsonl_file): if jsonl_file is not None: file_list = ['Dockerfile', 'app.py', 'README.md', os.path.basename(jsonl_file.name), "__pycache__"] file_list = ['Dockerfile', 'app.py', 'README.md', os.path.basename(jsonl_file.name), "__pycache__"] else: file_list = ['Dockerfile', 'app.py', 'README.md', "__pycache__"] for file in glob.glob("*"): try: if file not in file_list:91 unmodified lines def start_evaluation(command, jsonl_file, subset, split): extra = subset + "_" if subset != "full" else "" if jsonl_file.name is not None: if jsonl_file is not None: result_path = os.path.basename(jsonl_file.name).replace(".jsonl", f"_{extra}eval_results.json")
for log in stream_logs(command, jsonl_file):app.py+6-3