Spaces:
Runtime error
Runtime error
Commit
•
34493a0
1
Parent(s):
28059a5
Update utils.py
Browse files
utils.py
CHANGED
@@ -34,7 +34,7 @@ def project_sidebar():
|
|
34 |
st.session_state["hub_token"] = st.sidebar.text_input(
|
35 |
"Hub Token", type="password", value=os.environ.get("HF_TOKEN")
|
36 |
)
|
37 |
-
if st.checkbox("Save Hub Token") and st.session_state["hub_token"] is not None:
|
38 |
os.environ["HF_TOKEN"] = st.session_state["hub_token"]
|
39 |
st.sidebar.link_button(
|
40 |
"🤗 Get your Hub Token", "https://huggingface.co/settings/tokens"
|
|
|
34 |
st.session_state["hub_token"] = st.sidebar.text_input(
|
35 |
"Hub Token", type="password", value=os.environ.get("HF_TOKEN")
|
36 |
)
|
37 |
+
if st.sidebar.checkbox("Save Hub Token") and st.session_state["hub_token"] is not None:
|
38 |
os.environ["HF_TOKEN"] = st.session_state["hub_token"]
|
39 |
st.sidebar.link_button(
|
40 |
"🤗 Get your Hub Token", "https://huggingface.co/settings/tokens"
|