We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8a079 commit 174a5feCopy full SHA for 174a5fe
README.md
@@ -74,6 +74,11 @@ Example:
74
>>> status = client.get_status(job_id)
75
>>> if status.status == ModelStatus.READY:
76
... print(f"Model is ready at {status.base_url}")
77
+>>> # Alternatively, use wait_until_ready which will either return a StatusResponse or throw a ServerError
78
+>>> try:
79
+>>> status = wait_until_ready(job_id)
80
+>>> except ServerError as e:
81
+>>> print(f"Model launch failed: {e}")
82
>>> client.shutdown_model(job_id)
83
```
84
0 commit comments