mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Actually fixed meta data
This commit is contained in:
@@ -27,6 +27,5 @@ def create_meta(dict_list, name=None):
|
||||
def prep_meta_for_safetensors(meta):
|
||||
# safetensors can only be one level deep
|
||||
for key, value in meta.items():
|
||||
if isinstance(value, dict):
|
||||
meta[key] = json.dumps(value)
|
||||
meta[key] = json.dumps(value)
|
||||
return meta
|
||||
|
||||
Reference in New Issue
Block a user