stdout from the running model is now visible from the manager stdout
This commit is contained in:
parent
156db5d6a1
commit
e833342581
2 changed files with 7 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue