Spaces:
Running
Running
Update src/aibom_generator/api.py
Browse files
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
|
396 |
-
"metadata": "Information about the
|
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
|
436 |
|
437 |
-
This endpoint serves the generated
|
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):
|