a1c00l commited on
Commit
5452726
·
verified ·
1 Parent(s): 6c4b1a0

Update src/aibom_generator/api.py

Browse files
Files changed (1) hide show
  1. src/aibom_generator/api.py +4 -4
src/aibom_generator/api.py CHANGED
@@ -392,8 +392,8 @@ async def generate_form(
392
  }
393
 
394
  tooltips = {
395
- "required_fields": "Basic required fields for a valid AIBOM",
396
- "metadata": "Information about the AIBOM itself",
397
  "component_basic": "Basic information about the AI model component",
398
  "component_model_card": "Detailed model card information",
399
  "external_references": "Links to external resources"
@@ -432,9 +432,9 @@ async def generate_form(
432
  @app.get("/download/{filename}")
433
  async def download_file(filename: str):
434
  """
435
- Download a generated AIBOM file.
436
 
437
- This endpoint serves the generated AIBOM JSON files for download.
438
  """
439
  file_path = os.path.join(OUTPUT_DIR, filename)
440
  if not os.path.exists(file_path):
 
392
  }
393
 
394
  tooltips = {
395
+ "required_fields": "Basic required fields for a valid AI SBOM",
396
+ "metadata": "Information about the AI SBOM itself",
397
  "component_basic": "Basic information about the AI model component",
398
  "component_model_card": "Detailed model card information",
399
  "external_references": "Links to external resources"
 
432
  @app.get("/download/{filename}")
433
  async def download_file(filename: str):
434
  """
435
+ Download a generated AI SBOM file.
436
 
437
+ This endpoint serves the generated AI SBOM JSON files for download.
438
  """
439
  file_path = os.path.join(OUTPUT_DIR, filename)
440
  if not os.path.exists(file_path):