Skip to content

Commit

Permalink
fix: minor bug when only space id is provided for WML inference (#1583)
Browse files Browse the repository at this point in the history
fix: wml inference with space id only

Signed-off-by: Cheng Qian <[email protected]>
Co-authored-by: Cheng Qian <[email protected]>
  • Loading branch information
tsinggggg and Cheng Qian authored Feb 9, 2025
1 parent bf2d511 commit ed773e9
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 ed773e9

Please sign in to comment.