@@ -122,7 +122,7 @@ def save_artifact(
122122
123123 Args:
124124 source_path: Path to the file or directory to save, OR a pandas DataFrame
125- when type="evals " or type="dataset"
125+ when type="eval " or type="dataset"
126126 name: Optional name for the artifact. If not provided, uses source basename
127127 or generates a default name for DataFrames. When type="dataset",
128128 this is used as the dataset_id. When type="model", this is used as the model name
@@ -133,7 +133,7 @@ def save_artifact(
133133 - If "model", saves to workspace models directory and creates Model Zoo metadata.
134134 - Otherwise saves to artifacts directory.
135135 config: Optional configuration dict.
136- When type="evals ", can contain column mappings under "evals" key, e.g.:
136+ When type="eval ", can contain column mappings under "evals" key, e.g.:
137137 {"evals": {"input": "input_col", "output": "output_col",
138138 "expected_output": "expected_col", "score": "score_col"}}
139139 When type="dataset", can contain:
@@ -207,7 +207,7 @@ def save_artifact(
207207 return output_path
208208
209209 # Handle DataFrame input when type="evals"
210- if type == "evals " and hasattr (source_path , "to_csv" ):
210+ if type == "eval " and hasattr (source_path , "to_csv" ):
211211 # Normalize input: convert Hugging Face datasets.Dataset to pandas DataFrame
212212 df = source_path
213213 try :
0 commit comments