Sangjun2 commited on
Commit
33420c7
ยท
verified ยท
1 Parent(s): 670efbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()