Spaces:
Runtime error
Runtime error
Terry Zhuo commited on
Commit ·
9f3c532
1
Parent(s): 23ab980
update
Browse files20 unmodified lines21222324252627119 unmodified lines14714814915015115215320 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)119 unmodified linesdef start_evaluation(command, jsonl_file, subset, split):extra = subset + "_" if subset != "full" else ""result_path = os.path.basename(jsonl_file.name).replace(".jsonl", f"_{extra}eval_results.json")for log in stream_logs(command, jsonl_file):yield log, gr.update(value=result_path, label=result_path), gr.update()20 unmodified lines21222324252627119 unmodified lines14714814915015115215315420 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)119 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):yield log, gr.update(value=result_path, label=result_path), gr.update()
app.py+3-2