Commit 68e2b1e0 authored by dasharatha.vamshi's avatar dasharatha.vamshi

init

parent a587db48
...@@ -24,6 +24,11 @@ class AddtoModelStore: ...@@ -24,6 +24,11 @@ class AddtoModelStore:
self.artifact_archived_path = self.query['artifact_archived_path'] self.artifact_archived_path = self.query['artifact_archived_path']
self.new_model_path = os.path.join(self.component_input_dir, os.listdir(self.component_input_dir)[0]) self.new_model_path = os.path.join(self.component_input_dir, os.listdir(self.component_input_dir)[0])
self.new_model_name = os.listdir(self.component_input_dir)[0] self.new_model_name = os.listdir(self.component_input_dir)[0]
self.file_rename = self.new_model_name.split('.')[0] + "_" +str(uuid.uuid4()).split('-')[0] + "." + \
self.new_model_name.split('.')[1]
os.rename(self.new_model_path, os.path.join(self.component_input_dir, self.file_rename))
self.new_model_path = os.path.join(self.component_input_dir, os.listdir(self.component_input_dir)[0])
self.new_model_name = os.listdir(self.component_input_dir)[0]
self.meta_data_file = self.query['metadata_file'] self.meta_data_file = self.query['metadata_file']
self.update_current_model = { self.update_current_model = {
"model_name": "randomforest", "model_name": "randomforest",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"training_date": "2021-03-10", "training_date": "2021-03-10",
"framework": null, "framework": null,
"serializedObjectType": "pkl", "serializedObjectType": "pkl",
"model_fl_name": "model1.pkl" "model_fl_name": "modele_a7d835e0.pkl"
}, },
"archived": [ "archived": [
{ {
...@@ -16,15 +16,7 @@ ...@@ -16,15 +16,7 @@
"training_date": "2021-03-10", "training_date": "2021-03-10",
"framework": null, "framework": null,
"serializedObjectType": "pkl", "serializedObjectType": "pkl",
"model_fl_name": "model.pkl" "model_fl_name": "modele_85194781.pkl"
},
{
"model_name": "randomforest",
"model_params": null,
"training_date": "2021-03-10",
"framework": null,
"serializedObjectType": "pkl",
"model_fl_name": "model1.pkl"
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment