Authenticate
Browse files
app.py
CHANGED
@@ -1,9 +1,13 @@
|
|
|
|
1 |
from pathlib import Path
|
2 |
|
3 |
import streamlit as st
|
4 |
|
5 |
x = st.slider('Select a value')
|
6 |
st.write(x, 'squared is', x * x)
|
|
|
|
|
|
|
7 |
|
8 |
hub_folder = Path('~/.cache/huggingface/hub')
|
9 |
for path in hub_folder.walk():
|
|
|
1 |
+
import os
|
2 |
from pathlib import Path
|
3 |
|
4 |
import streamlit as st
|
5 |
|
6 |
x = st.slider('Select a value')
|
7 |
st.write(x, 'squared is', x * x)
|
8 |
+
from huggingface_hub import login
|
9 |
+
|
10 |
+
login(os.getenv('HF_TOKEN'))
|
11 |
|
12 |
hub_folder = Path('~/.cache/huggingface/hub')
|
13 |
for path in hub_folder.walk():
|