Update app.py
Browse files
app.py
CHANGED
|
@@ -1419,6 +1419,7 @@ def extract_images_from_pdf(pdf_stream: io.BytesIO):
|
|
| 1419 |
def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1, min_similarity: float = None) -> str:
|
| 1420 |
print("🔍 Running similarity matching…")
|
| 1421 |
import os
|
|
|
|
| 1422 |
os.makedirs(project_folder, exist_ok=True)
|
| 1423 |
|
| 1424 |
backdrop_base_path = os.path.normpath(str(BACKDROP_DIR))
|
|
|
|
| 1419 |
def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1, min_similarity: float = None) -> str:
|
| 1420 |
print("🔍 Running similarity matching…")
|
| 1421 |
import os
|
| 1422 |
+
import json
|
| 1423 |
os.makedirs(project_folder, exist_ok=True)
|
| 1424 |
|
| 1425 |
backdrop_base_path = os.path.normpath(str(BACKDROP_DIR))
|