a1c00l commited on
Commit
9034abb
·
verified ·
1 Parent(s): f535c4d

Update src/aibom_generator/generator.py

Browse files
Files changed (1) hide show
  1. src/aibom_generator/generator.py +2 -1
src/aibom_generator/generator.py CHANGED
@@ -301,9 +301,10 @@ class AIBOMGenerator:
301
 
302
  authors = []
303
  if metadata and "author" in metadata and metadata["author"]:
 
304
  authors.append({
305
  "name": metadata["author"],
306
- "url": f"https://huggingface.co/{metadata['author']}"
307
  })
308
 
309
  component = {
 
301
 
302
  authors = []
303
  if metadata and "author" in metadata and metadata["author"]:
304
+ # Use email instead of url to comply with CycloneDX schema
305
  authors.append({
306
  "name": metadata["author"],
307
+ "email": f"{metadata['author']}@huggingface.co"
308
  })
309
 
310
  component = {