Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,20 +25,20 @@ import base64
|
|
25 |
from io import StringIO
|
26 |
from huggingface_hub import hf_hub_download
|
27 |
|
28 |
-
#
|
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 |
|