Skip to content
Prev Previous commit
Next Next commit
output_dir check
  • Loading branch information
ninghu committed Oct 30, 2024
commit 04e4afc79846158896aab58c9d33db959cce5342
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def _validate_and_load_data(target, data, evaluators, output_path, azure_ai_proj
)

output_dir = output_path if os.path.isdir(output_path) else os.path.dirname(output_path)
if not os.path.exists(output_dir):
if output_dir and not os.path.exists(output_dir):
msg = f"The output directory '{output_dir}' does not exist. Please create the directory manually."
raise EvaluationException(
message=msg,
Expand Down