DevouringStars commited on
Commit
942f7d6
·
1 Parent(s): 14c4536

fix: Add cache_folder and token to SentenceTransformer

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -30,7 +30,8 @@ print("✅ Successfully connected to MongoDB Atlas.")
30
 
31
  print("Loading embedding model (this may take a while)...")
32
  embedding_model = SentenceTransformer('all-MiniLM-L6-v2',
33
- cache_folder='/tmp/model_cache')
 
34
  print("✅ Embedding model ('all-MiniLM-L6-v2') has been successfully loaded.")
35
 
36
  # --- KODE BARU UNTUK KONEKSI HOSTING (CloudClient) ---
 
30
 
31
  print("Loading embedding model (this may take a while)...")
32
  embedding_model = SentenceTransformer('all-MiniLM-L6-v2',
33
+ cache_folder='/tmp/model_cache',
34
+ token= hf_token)
35
  print("✅ Embedding model ('all-MiniLM-L6-v2') has been successfully loaded.")
36
 
37
  # --- KODE BARU UNTUK KONEKSI HOSTING (CloudClient) ---