Skip to content

Commit

Permalink
Merge pull request #36 from gizatechxyz/gonzalo/giz-311-deployments-w…
Browse files Browse the repository at this point in the history
…ith-sierra-files

Deployments with Sierra files
  • Loading branch information
Gonmeso authored Jan 22, 2024
2 parents f81af2c + 11fee30 commit 093dcdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion giza/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def create(
),
headers=headers,
params=deployment_create.dict(),
files={"casm": f} if f is not None else None,
files={"sierra": f} if f is not None else None,
)
self._echo_debug(str(response))

Expand Down
6 changes: 3 additions & 3 deletions giza/frameworks/cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def deploy(
Command to deploy a specific version of a model. This will create a deployment for the specified version and check the status, once it finishes if COMPLETED the deployment is ready to be used.
Args:
data: main CASM file
data: main SIERRA file
model_id: model id to deploy
version_id: version id to deploy
size: Size of the service, allowed values are S, M, L and XL. Defaults to S.
Expand All @@ -149,7 +149,7 @@ def deploy(
spinner = Spinner(name="aesthetic", text="Creating deployment!")

with Live(renderable=spinner):
with open(data) as casm:
with open(data) as sierra:
deployment = client.create(
model_id,
version_id,
Expand All @@ -158,7 +158,7 @@ def deploy(
model_id=model_id,
version_id=version_id,
),
casm,
sierra,
)

except ValidationError as e:
Expand Down

0 comments on commit 093dcdf

Please sign in to comment.