Sangjun2 commited on
Commit
7f63b36
Β·
verified Β·
1 Parent(s): fbe889f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -25,20 +25,20 @@ import base64
25
  from io import StringIO
26
  from huggingface_hub import hf_hub_download
27
 
28
- # Git LFS pull λͺ…λ Ήμ–΄ μ‹€ν–‰
29
  #result = subprocess.run(['git', 'lfs', 'pull'], capture_output=True, text=True)
30
 
31
- # λͺ…λ Ήμ–΄ μ‹€ν–‰ κ²°κ³Ό 좜λ ₯ (선택 사항)
32
  #if result.returncode == 0:
33
  # print("LFS 파일이 μ„±κ³΅μ μœΌλ‘œ λ‹€μš΄λ‘œλ“œλ˜μ—ˆμŠ΅λ‹ˆλ‹€.")
34
  #else:
35
  # print(f"였λ₯˜ λ°œμƒ: {result.stderr}")
36
 
37
- logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
38
- logger = logging.getLogger()
39
 
40
- warnings.filterwarnings('ignore')
41
- MAX_PATCHES = 512
42
  # Load the models and processor
43
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
44
 
 
25
  from io import StringIO
26
  from huggingface_hub import hf_hub_download
27
 
28
+ #Git LFS pull λͺ…λ Ήμ–΄ μ‹€ν–‰
29
  #result = subprocess.run(['git', 'lfs', 'pull'], capture_output=True, text=True)
30
 
31
+ #λͺ…λ Ήμ–΄ μ‹€ν–‰ κ²°κ³Ό 좜λ ₯ (선택 사항)
32
  #if result.returncode == 0:
33
  # print("LFS 파일이 μ„±κ³΅μ μœΌλ‘œ λ‹€μš΄λ‘œλ“œλ˜μ—ˆμŠ΅λ‹ˆλ‹€.")
34
  #else:
35
  # print(f"였λ₯˜ λ°œμƒ: {result.stderr}")
36
 
37
+ #logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
38
+ #logger = logging.getLogger()
39
 
40
+ #warnings.filterwarnings('ignore')
41
+ #MAX_PATCHES = 512
42
  # Load the models and processor
43
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
44