Spaces:
Runtime error
Runtime error
Commit
·
e142b51
1
Parent(s):
001d138
:construction: wip
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import os
|
2 |
-
import
|
3 |
import sys
|
4 |
from subprocess import call
|
5 |
|
@@ -24,7 +24,10 @@ 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..."):
|
26 |
repo = Repository(local_dir=cache_dir, clone_from=repo_name, repo_type='dataset')
|
27 |
-
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
def main():
|
|
|
1 |
import os
|
2 |
+
import time
|
3 |
import sys
|
4 |
from subprocess import call
|
5 |
|
|
|
24 |
if os.environ.get("DO_DOWNLOAD_CACHE") and 'cache_is_downloaded' not in st.session_state:
|
25 |
with st.spinner("Downloading cache..."):
|
26 |
repo = Repository(local_dir=cache_dir, clone_from=repo_name, repo_type='dataset')
|
27 |
+
|
28 |
+
while os.environ.get("GIT_LFS_PROGRESS"):
|
29 |
+
time.sleep(1)
|
30 |
+
# repo.git_pull() # Needed? What about if I'm running this locally + wanna update my local cache?
|
31 |
|
32 |
|
33 |
def main():
|