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
A newer version of the Gradio SDK is available: 6.30.0
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.
As markdown list
- extension
- extension.json (required)
- main.py
- requirements.py
- style.py
- scripts
- script.js
As file path list
extension/extension.json (required)
extension/main.py
extension/requirements.py
extension/style.py
extension/scripts/script.js
File contents
extension/requirements.py: Refer to Requirements docs
extension/style.py: Refer to SimpleStyle docs
extension/scripts/script.js: Refer to Custom javascript docs
extension/extension.json:
{
"name": "Extension name",
"description": "This extension does nothing.",
"author": "GitMylo",
"tags": []
}
extension/main.py:
# Put any code here, such as callback registers etc. This code will be ran after install, on plugin init.