Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,15 @@ import itertools
|
|
19 |
import sys
|
20 |
import time
|
21 |
import logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
24 |
logger = logging.getLogger()
|
|
|
19 |
import sys
|
20 |
import time
|
21 |
import logging
|
22 |
+
import subprocess
|
23 |
+
|
24 |
+
result = subprocess.run(['git', 'lfs', 'pull'], capture_output=True, text=True)
|
25 |
+
|
26 |
+
# ๋ช
๋ น์ด ์คํ ๊ฒฐ๊ณผ ์ถ๋ ฅ (์ ํ ์ฌํญ)
|
27 |
+
if result.returncode == 0:
|
28 |
+
print("LFS ํ์ผ์ด ์ฑ๊ณต์ ์ผ๋ก ๋ค์ด๋ก๋๋์์ต๋๋ค.")
|
29 |
+
else:
|
30 |
+
print(f"์ค๋ฅ ๋ฐ์: {result.stderr}")
|
31 |
|
32 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
33 |
logger = logging.getLogger()
|