File size: 751 Bytes
f80c5ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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