miaoshouai / miaoshouai-assistant

MiaoshouAI Assistant for Automatic1111 Webui
Apache License 2.0
314 stars 25 forks source link

GradioDeprecationWarning: The `style` method is deprecated #44

Open whitevamp opened 1 year ago

whitevamp commented 1 year ago

after down loading and restarting A1111 I am getting this error. G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:154: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=True): G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:164: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. my_model_source_dropdown = gr.Dropdown( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:173: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. my_model_type = gr.Radio(mtypes, G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:276: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=True): G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:277: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. model_source_dropdown = gr.Dropdown(choices=["civitai.com", "liandange.com", "official_models", 'hugging_face', "controlnet"], G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:286: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=True): G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:295: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=True): G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:297: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. model_type = gr.Radio(["All"] + list(self.prelude.model_type.keys()), G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:302: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. self.runtime.ds_models = gr.Dataset( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:302: GradioDeprecationWarning: Unknown style parameter: type self.runtime.ds_models = gr.Dataset( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:302: GradioDeprecationWarning: Unknown style parameter: container self.runtime.ds_models = gr.Dataset( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:313: GradioDeprecationWarning: Thestylemethod is deprecated. Please set these arguments in the constructor instead. self.runtime.ds_cover_gallery = gr.Dataset( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:313: GradioDeprecationWarning: Unknown style parameter: type self.runtime.ds_cover_gallery = gr.Dataset( G:\AI_Generation\stable-diffusion-webui\stable-diffusion-webui-v1.5\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py:313: GradioDeprecationWarning: Unknown style parameter: container
self.runtime.ds_cover_gallery = gr.Dataset(

triphop commented 1 year ago

we have a branch, on it, we try to depress these warnings, please use it to verify this issue. bugfix/gradio_api_incompatibility

cd <your_stable_diffusion_directory>/extensions/miaoshouai-assistant/
git checkout -b verfication origin/bugfix/gradio_api_incompatibility
git pull --rebase -p

and after then, please restart your webui again