stdout from the running model is now visible from the manager stdout

This commit is contained in:
faraphel 2025-01-19 18:54:47 +01:00
parent 156db5d6a1
commit e833342581
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,6 @@
import inspect
import typing
import fastapi
@ -24,8 +26,10 @@ def load(parameters_definition: dict[str, dict]) -> list[inspect.Parameter]:
match definition["type"]:
case "file":
# shortcut for uploading a file
definition["type"] = fastapi.UploadFile
definition["type"] = typing.Annotated[
fastapi.UploadFile,
fastapi.File()
]
# deserialize the parameter
parameter = inspect.Parameter(