prthm11 commited on
Commit
713df1b
·
verified ·
1 Parent(s): 82ab19d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1824,7 +1824,6 @@ def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1,
1824
  backdrop_base_path = os.path.normpath(str(BACKDROP_DIR))
1825
  sprite_base_path = os.path.normpath(str(SPRITE_DIR))
1826
  code_blocks_path = os.path.normpath(str(CODE_BLOCKS_DIR))
1827
- # out_path = r"D:\DEV PATEL\2025\scratch_VLM\scratch_agent\blocks\out_json"
1828
 
1829
  project_json_path = os.path.join(project_folder, "project.json")
1830
 
@@ -1869,9 +1868,9 @@ def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1,
1869
  from collections import defaultdict
1870
 
1871
  # Load reference data
1872
- embeddings_path = os.path.join(backdrop_base_path, "hybrid_embeddings.json")
1873
- hash_path = os.path.join(backdrop_base_path, "phash_data.json")
1874
- signature_path = os.path.join(backdrop_base_path, "signature_data.json")
1875
 
1876
  # Load embeddings
1877
  with open(embeddings_path, "r", encoding="utf-8") as f:
 
1824
  backdrop_base_path = os.path.normpath(str(BACKDROP_DIR))
1825
  sprite_base_path = os.path.normpath(str(SPRITE_DIR))
1826
  code_blocks_path = os.path.normpath(str(CODE_BLOCKS_DIR))
 
1827
 
1828
  project_json_path = os.path.join(project_folder, "project.json")
1829
 
 
1868
  from collections import defaultdict
1869
 
1870
  # Load reference data
1871
+ embeddings_path = os.path.join(BLOCKS_DIR, "hybrid_embeddings.json")
1872
+ hash_path = os.path.join(BLOCKS_DIR, "phash_data.json")
1873
+ signature_path = os.path.join(BLOCKS_DIR, "signature_data.json")
1874
 
1875
  # Load embeddings
1876
  with open(embeddings_path, "r", encoding="utf-8") as f: