Update app.py
Browse files
app.py
CHANGED
|
@@ -2404,7 +2404,8 @@ def similarity_matching(sprites_data: dict, project_folder: str) -> str:
|
|
| 2404 |
"""
|
| 2405 |
logger.info("🔍 Running similarity matching with FAISS...")
|
| 2406 |
os.makedirs(project_folder, exist_ok=True)
|
| 2407 |
-
|
|
|
|
| 2408 |
# Lazily load the model and FAISS index on the first call
|
| 2409 |
load_model_and_index()
|
| 2410 |
|
|
|
|
| 2404 |
"""
|
| 2405 |
logger.info("🔍 Running similarity matching with FAISS...")
|
| 2406 |
os.makedirs(project_folder, exist_ok=True)
|
| 2407 |
+
|
| 2408 |
+
project_json_path = os.path.join(project_folder, 'project.json')
|
| 2409 |
# Lazily load the model and FAISS index on the first call
|
| 2410 |
load_model_and_index()
|
| 2411 |
|