Spaces:
Paused
Paused
Download app/settings.py from JacobLinCool/ZeroRVC: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/JacobLinCool/ZeroRVC/resolve/main/app/settings.py
- Command line
-
hf download hf://spaces/JacobLinCool/ZeroRVC/app/settings.py
-
curl -L -o settings.py https://huggingface.co/spaces/JacobLinCool/ZeroRVC/resolve/main/app/settings.py
751 Bytes
| import gradio as gr | |
| from .constants import HF_TOKEN | |
| class SettingsTab: | |
| def __init__(self): | |
| pass | |
| def ui(self): | |
| self.exp_dir = gr.Textbox( | |
| label="Temporary Experiment Directory (auto-managed)", | |
| placeholder="It will be auto-generated after setup", | |
| interactive=True, | |
| ) | |
| gr.Markdown( | |
| "### Sync with Hugging Face 🤗\n\nThe access token will be use to upload/download the dataset and model." | |
| ) | |
| self.hf_token = gr.Textbox( | |
| label="Hugging Face Access Token", | |
| placeholder="Paste your Hugging Face access token here (hf_...)", | |
| value=HF_TOKEN, | |
| interactive=True, | |
| ) | |
| def build(self): | |
| pass | |