yourusername commited on
Commit
dbb2340
·
1 Parent(s): 63a2f9a

:art: git pull just in case?

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -24,13 +24,7 @@ def download_cache(cache_dir: str, repo_name: str):
24
  if os.environ.get("DO_DOWNLOAD_CACHE") and 'cache_is_downloaded' not in st.session_state:
25
  with st.spinner("Downloading cache...this might take a while 😬"):
26
  repo = Repository(local_dir=cache_dir, clone_from=repo_name, repo_type='dataset')
27
-
28
- elapsed = 0
29
- while os.environ.get("GIT_LFS_PROGRESS"):
30
- st.write(f"been waiting {elapsed} seconds...")
31
- time.sleep(1)
32
- elapsed += 1
33
- # repo.git_pull() # Needed? What about if I'm running this locally + wanna update my local cache?
34
 
35
 
36
  def main():
 
24
  if os.environ.get("DO_DOWNLOAD_CACHE") and 'cache_is_downloaded' not in st.session_state:
25
  with st.spinner("Downloading cache...this might take a while 😬"):
26
  repo = Repository(local_dir=cache_dir, clone_from=repo_name, repo_type='dataset')
27
+ repo.git_pull()
 
 
 
 
 
 
28
 
29
 
30
  def main():