Utils#

General util functions for the django connector functionality.

fma_django_connectors.utils.create_model_file(data)#

Create a django json file object of the model weights data.

Parameters:

data (Any) – Model weights data

Returns:

a json object of the model weights and metadata expected by the API service

Return type:

django.core.files.uploadedfile.UploadedFile