Skip to content

Commit

Permalink
fix(tests): fix deploy_model e2e test (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
jezekra1 authored May 28, 2024
1 parent 1e6d20e commit 5e3e7f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/deployment/deployed_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def heading(text: str) -> str:

if len(deployment_list.results) < 1:
print("No deployed models found.")
exit(1)

print(heading("Retrieve information about first deployment"))
deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id)
pprint(deployment_info.model_dump())
else:
print(heading("Retrieve information about first deployment"))
deployment_info = client.deployment.retrieve(id=deployment_list.results[0].id)
pprint(deployment_info.model_dump())

0 comments on commit 5e3e7f9

Please sign in to comment.