Ali2206 commited on
Commit
ef4bf8a
·
verified ·
1 Parent(s): d97b01f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -48,10 +48,14 @@ def download_model_files():
48
  resume_download=True
49
  )
50
 
 
 
 
51
  def generate_embeddings(agent):
52
- embedding_path = CONFIG["embedding_filename"]
 
53
  if os.path.exists(embedding_path):
54
- print(" Using pre-uploaded embeddings file")
55
  return
56
 
57
  print("Generating missing tool embeddings...")
 
48
  resume_download=True
49
  )
50
 
51
+ # Skip hf_hub_download for embedding since it's already uploaded manually
52
+ print("Embedding file assumed to be pre-uploaded, skipping download.")
53
+
54
  def generate_embeddings(agent):
55
+ embedding_path = os.path.join(CONFIG["local_dir"], CONFIG["embedding_filename"])
56
+
57
  if os.path.exists(embedding_path):
58
+ print("Embeddings file already exists")
59
  return
60
 
61
  print("Generating missing tool embeddings...")