Update app.py
Browse files
app.py
CHANGED
|
@@ -1418,6 +1418,7 @@ def extract_images_from_pdf(pdf_stream: io.BytesIO):
|
|
| 1418 |
''' It appends all the list and paths from json files and pick the best match's path'''
|
| 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 |
os.makedirs(project_folder, exist_ok=True)
|
| 1422 |
|
| 1423 |
backdrop_base_path = os.path.normpath(str(BACKDROP_DIR))
|
|
|
|
| 1418 |
''' It appends all the list and paths from json files and pick the best match's path'''
|
| 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))
|