mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-09 08:11:06 -07:00
gradio 3.41.2 attempt
This commit is contained in:
parent
f0f100e67b
commit
08c68820cd
6 changed files with 78 additions and 9 deletions
|
|
@ -93,8 +93,8 @@ class PydanticModelGenerator:
|
|||
d.field: (d.field_type, Field(default=d.field_value, alias=d.field_alias, exclude=d.field_exclude)) for d in self._model_def
|
||||
}
|
||||
DynamicModel = create_model(self._model_name, **fields)
|
||||
DynamicModel.__config__.allow_population_by_field_name = True
|
||||
DynamicModel.__config__.allow_mutation = True
|
||||
DynamicModel.model_config['populate_by_name'] = True
|
||||
DynamicModel.model_config['frozen'] = True
|
||||
return DynamicModel
|
||||
|
||||
StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue