Skip to content

Commit

Permalink
fix: wml inference with space id only
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng Qian <[email protected]>
  • Loading branch information
Cheng Qian committed Feb 7, 2025
1 parent bf2d511 commit 654530b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unitxt/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -2004,6 +2004,8 @@ def _read_wml_credentials_from_env() -> CredentialsWML:
"only one of those defined in the env."
)
credentials["space_id"] = space_id
elif space_id:
credentials["space_id"] = space_id
elif project_id:
credentials["project_id"] = project_id
else:
Expand Down

0 comments on commit 654530b

Please sign in to comment.