mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-28 18:54:18 +00:00
gradio 3.41.2 attempt
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user