@@ -102,7 +102,7 @@ def runalgo(self, options, client):
102
102
elif (options .binary_file != None ):
103
103
# binary file
104
104
with open (options .binary_file , "rb" ) as f :
105
- algo_inputs = bytes (f .read ())
105
+ algo_input = bytes (f .read ())
106
106
key = self .getAPIkey (options .profile )
107
107
content = 'application/octet-stream'
108
108
@@ -246,7 +246,8 @@ def cat(self, path, client):
246
246
247
247
return result
248
248
249
- def lockAlgo (self , client , manifest_path = "model_manifest.json" ):
249
+ # algo freeze
250
+ def freezeAlgo (self , client , manifest_path = "model_manifest.json" ):
250
251
if os .path .exists (manifest_path ):
251
252
with open (manifest_path , 'r' ) as f :
252
253
manifest_file = json .load (f )
@@ -265,7 +266,7 @@ def lockAlgo(self, client, manifest_path="model_manifest.json"):
265
266
required_files [i ]['md5_checksum' ] = md5_checksum
266
267
lock_md5_checksum = md5_for_str (str (manifest_file ))
267
268
manifest_file ['lock_checksum' ] = lock_md5_checksum
268
- with open ('model_manifest.json.lock ' , 'w' ) as f :
269
+ with open ('model_manifest.json.freeze ' , 'w' ) as f :
269
270
json .dump (manifest_file , f )
270
271
else :
271
272
print ("Expected to find a model_manifest.json file, none was discovered in working directory" )
0 commit comments