Spaces:
Runtime error
Runtime error
File size: 423 Bytes
50a1cad |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import os
import streamlit as st
from huggingface_hub import Repository
st.title("Spaces LFS Workflow")
if os.environ.get("DO_DOWNLOAD_CACHE") and 'cache_is_downloaded' not in st.session_state:
with st.spinner("Downloading cache..."):
repo = Repository(local_dir="cache_dir", clone_from='nateraw/fairface', repo_type='dataset')
st.write(os.listdir('.'))
st.write(os.listdir('./cache_dir'))
|