You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new training using the specified model version as a base.
@@ -120,24 +154,45 @@ def create( # type: ignore
120
154
input: The input to the training.
121
155
destination: The desired model to push to in the format `{owner}/{model_name}`. This should be an existing model owned by the user or organization making the API request.
122
156
webhook: The URL to send a POST request to when the training is completed. Defaults to None.
157
+
webhook_completed: The URL to receive a POST request when the prediction is completed.
123
158
webhook_events_filter: The events to send to the webhook. Defaults to None.
124
159
Returns:
125
160
The training object.
126
161
"""
127
162
128
-
input=encode_json(input, upload_file=upload_file)
163
+
# Support positional arguments for backwards compatibility
164
+
version=args[0] ifargselsekwargs.get("version")
165
+
ifversionisNone:
166
+
raiseValueError(
167
+
"A version identifier must be provided as a positional or keyword argument."
0 commit comments