mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add xyz and script support to control api
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -442,7 +442,7 @@ class ResGPU(BaseModel): # definition of http response
|
||||
|
||||
# helper function
|
||||
|
||||
def create_model_from_signature(func: Callable, model_name: str, base_model: Type[BaseModel] = BaseModel, additional_fields: List = [], exclude_fields: List[str] = []):
|
||||
def create_model_from_signature(func: Callable, model_name: str, base_model: Type[BaseModel] = BaseModel, additional_fields: List = [], exclude_fields: List[str] = []) -> type[BaseModel]:
|
||||
from PIL import Image
|
||||
|
||||
class Config:
|
||||
|
||||
Reference in New Issue
Block a user