Chanjeans commited on
Commit
662f214
·
verified ·
1 Parent(s): f0d766d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -18,6 +18,8 @@ os.environ["HF_HOME"] = "/tmp/huggingface"
18
  os.environ["HF_HOME"] = "/tmp/huggingface_cache"
19
  os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface_cache"
20
  os.environ["HF_HUB_CACHE"] = "/tmp/huggingface_cache"
 
 
21
  # 🟢 (A) 모델 로딩
22
  print("Loading SentenceTransformer model...)")
23
  model = SentenceTransformer("sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", trust_remote_code=False)
 
18
  os.environ["HF_HOME"] = "/tmp/huggingface_cache"
19
  os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface_cache"
20
  os.environ["HF_HUB_CACHE"] = "/tmp/huggingface_cache"
21
+ os.environ["HF_HUB_OFFLINE"] = "1" # 모델 다운로드 없이 로드
22
+ os.environ["TRANSFORMERS_OFFLINE"] = "1" # Transformers도 오프라인 모드로
23
  # 🟢 (A) 모델 로딩
24
  print("Loading SentenceTransformer model...)")
25
  model = SentenceTransformer("sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", trust_remote_code=False)