Spaces:
No application file
No application file
|
Download readme/extensions/base.md from mrtroydev/audio-webui: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/mrtroydev/audio-webui/resolve/main/readme/extensions/base.md
- Command line
-
hf download hf://spaces/mrtroydev/audio-webui/readme/extensions/base.md
-
curl -L -o base.md https://huggingface.co/spaces/mrtroydev/audio-webui/resolve/main/readme/extensions/base.md
1.17 kB
| # Extension base | |
| ## What is this about? | |
| The extension base shows the files that the extension loader will check for. | |
| ## Structure | |
| Extensions are placed in the `extensions` folder. | |
| 2 different descriptions below, same structure, pick the one you understand best. | |
| <details> | |
| <summary> | |
| As markdown list | |
| </summary> | |
| * extension | |
| * extension.json **(required)** | |
| * main.py | |
| * requirements.py | |
| * style.py | |
| * scripts | |
| * script.js | |
| </details> | |
| <details> | |
| <summary> | |
| As file path list | |
| </summary> | |
| extension/extension.json **(required)** | |
| extension/main.py | |
| extension/requirements.py | |
| extension/style.py | |
| extension/scripts/script.js | |
| </details> | |
| ## File contents | |
| extension/requirements.py: Refer to [Requirements docs](requirements.md) | |
| extension/style.py: Refer to [SimpleStyle docs](style.md) | |
| extension/scripts/script.js: Refer to [Custom javascript docs](js.md) | |
| extension/extension.json: | |
| ```json | |
| { | |
| "name": "Extension name", | |
| "description": "This extension does nothing.", | |
| "author": "GitMylo", | |
| "tags": [] | |
| } | |
| ``` | |
| extension/main.py: | |
| ```python | |
| # Put any code here, such as callback registers etc. This code will be ran after install, on plugin init. | |
| ``` |