Spaces:
Runtime error
Runtime error
Terry Zhuo commited on
Commit ·
7f77e31
1
Parent(s): 9f3c532
update
Browse files20 unmodified lines2122232425262721 unmodified lines4950515253545591 unmodified lines14714814915015115215320 unmodified lines):command = [default_command]if jsonl_file.name is not None:# Copy the uploaded file to the current directorylocal_filename = os.path.basename(jsonl_file.name)shutil.copy(jsonl_file.name, local_filename)21 unmodified linesdef cleanup_previous_files(jsonl_file):file_list = ['Dockerfile', 'app.py', 'README.md', os.path.basename(jsonl_file.name), "__pycache__"]for file in glob.glob("*"):try:if file not in file_list:91 unmodified linesdef start_evaluation(command, jsonl_file, subset, split):extra = subset + "_" if subset != "full" else ""if jsonl_file.name 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):20 unmodified lines2122232425262721 unmodified lines4950515253545556575891 unmodified lines15015115215315415515620 unmodified lines):command = [default_command]if jsonl_file is not None:# Copy the uploaded file to the current directorylocal_filename = os.path.basename(jsonl_file.name)shutil.copy(jsonl_file.name, local_filename)21 unmodified linesdef 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__"]else:file_list = ['Dockerfile', 'app.py', 'README.md', "__pycache__"]for file in glob.glob("*"):try:if file not in file_list:91 unmodified linesdef start_evaluation(command, jsonl_file, subset, split):extra = subset + "_" if subset != "full" else ""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