Repository: stable-diffusion-webui
Issue: [Bug]: Gradio Deprecations Warnings and Other Ones, Reloading option doesn't always work.
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

When I start SD or reload the web UI, I get warnings about some obsolete Gradio options and also about a specific path that has to do with site-packages\huggingface_hub, about a function that is already obsolete that will be specified in the console logs, these errors normally did not appear until I updated SD to its version 1.9.4 (the most recent) with the same updater that is already integrated (update.bat) and also torch to its version 2.1.2 , (adding that also sometimes it does not reload the webUI even leaving it for 10 min, it stucks in there)

### Steps to reproduce the problem

1. Starting SDWEB-UI or trying reloading it.

### What should have happened?

These errors did not usually appear before, now I would like to know how to solve them, especially if I have to update Gradio to its version 4 (or 4.32 which I think is the latest but the  integrated updater doesn't upgrade my Gradio, so i think it's still incompatible with SD), and regarding that file that details an obsolete function, enter the code to deal with to eliminate that function, but I still don't know if other functions depend on it or something like that and in the end I get a chain error, also reloading webUI shouldn't stuck.


### What browsers do you use to access the UI ?

Other

### Sysinfo

[sysinfo-2024-06-02-02-26.json](https://github.com/user-attachments/files/15523952/sysinfo-2024-06-02-02-26.json)


### Console logs

```Shell
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
[ERROR] ComfyUI-Impact-Pack: Dependency installation has failed. Please install manually.
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
CHv1.8.9: Get Custom Model Folder
[-] ADetailer initialized. version: 24.5.1, num models: 10
CivitAI Browser+: Aria2 RPC started
Loading weights [67ab2fd8ec] from C:\Users\oport\Desktop\SDWEBUI2\webui\models\Stable-diffusion\ponyDiffusionV6XL_v6StartWithThisOne.safetensors
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
CHv1.8.9: Set Proxy:
C:\Users\oport\Desktop\SDWEBUI2\webui\extensions\model_preset_manager\scripts\main.py:446: GradioDeprecationWarning: 'scale' value should be an integer. Using 0.1 will cause issues.
  with gr.Column(min_width=100, scale = 0.1):
C:\Users\oport\Desktop\SDWEBUI2\webui\extensions\model_preset_manager\scripts\main.py:463: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  model_generation_data = gr.Textbox(label = model_generation_data_label_text(), value = "", lines = 3, elem_id = "def_model_gen_data_textbox").style(show_copy_button=True)
C:\Users\oport\Desktop\SDWEBUI2\webui\extensions\model_preset_manager\scripts\main.py:466: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  triggerWords = gr.CheckboxGroup([], multiselect=True, label="Trigger Words", interactive = True).style(container=True, item_container=True)
C:\Users\oport\Desktop\SDWEBUI2\webui\extensions\model_preset_manager\scripts\main.py:466: GradioDeprecationWarning: The `item_container` parameter is deprecated.
  triggerWords = gr.CheckboxGroup([], multiselect=True, label="Trigger Words", interactive = True).style(container=True, item_container=True)
C:\Users\oport\Desktop\SDWEBUI2\webui\extensions\model_preset_manager\scripts\main.py:493: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_textbox = gr.Textbox(interactive=False, label="Output").style(show_copy_button=True)
C:\Users\oport\Desktop\SDWEBUI2\webui\modules\gradio_extensons.py:25: GradioDeprecationWarning: `height` is deprecated in `Interface()`, please use it within `launch()` instead.
  res = original_IOComponent_init(self, *args, **kwargs)
Creating model from config: C:\Users\oport\Desktop\SDWEBUI2\webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
C:\Users\oport\Desktop\SDWEBUI2\system\python\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 19.5s (prepare environment: 7.0s, import torch: 3.8s, import gradio: 1.2s, setup paths: 1.0s, initialize shared: 0.2s, other imports: 0.7s, load scripts: 2.3s, create ui: 2.8s, gradio launch: 0.3s).
```


### Additional information

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/145821250/9726836c-72de-41c9-be9a-5fce9857f26b)
 it stuck sometimes forever trying to reload UI ( I always used Opera GX)
 By the way i had these warnings  in my previous SD installation
 Nvidia Game Ready Driver version: 555.85
 Thanks for reading.