Utils#
Contains utility functions for handling data sent to the FMA Django API.
- fma_django_api.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