Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ci/update_model_info_deparate.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ def update_model_info(
model_info = get_json_dict(model_info_path)

if bundle_name_with_version not in model_info.keys():
model_info[bundle_name_with_version] = {"checksum": "", "source": ""}
model_info[bundle_name_with_version] = {"checksum": "", "source": "", "description": ""}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @RomanFenioux , this script is an old version and is not used, can you revert the changes? Thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, i did not know that. Should the file be deleted to avoid confusion if the script is not used anymore ?


model_info[bundle_name_with_version]["checksum"] = checksum
model_info[bundle_name_with_version]["source"] = source
model_info[bundle_name_with_version]["description"] = metadata["description"]

save_model_info(model_info, model_info_path)
return (True, "update successful")
Expand Down
3 changes: 2 additions & 1 deletion ci/update_model_info_deparate_ngc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ def update_model_info(

# step 4
if bundle_name_with_version not in model_info.keys():
model_info[bundle_name_with_version] = {"checksum": "", "source": ""}
model_info[bundle_name_with_version] = {"checksum": "", "source": "", "description": ""}

model_info[bundle_name_with_version]["checksum"] = checksum
model_info[bundle_name_with_version]["source"] = source
model_info[bundle_name_with_version]["description"] = metadata["description"]

save_model_info(model_info, model_info_path)
return (True, "update successful")
Expand Down