File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ def create_model(
357
357
model ["immutable" ] = is_immutable or model .get ("immutable" )
358
358
model ["inputVariables" ] = input_variables or model .get ("inputVariables" , [])
359
359
model ["outputVariables" ] = output_variables or model .get ("outputVariables" , [])
360
- model ["version" ] = "2"
360
+ model ["version" ] = 2
361
361
362
362
return cls .post (
363
363
"/models" ,
@@ -399,7 +399,7 @@ def add_model_content(
399
399
model = cls .get_model (model )
400
400
id_ = model ["id" ]
401
401
402
- if content_type is "multipart/form-data" and isinstance (file , bytes ):
402
+ if content_type == "multipart/form-data" and isinstance (file , bytes ):
403
403
content_type = "application/octet-stream"
404
404
elif isinstance (file , dict ):
405
405
import json
You can’t perform that action at this time.
0 commit comments