Update djezzy.py
Browse files
djezzy.py
CHANGED
@@ -18,11 +18,12 @@ import pickle
|
|
18 |
import numpy as np
|
19 |
import shutil
|
20 |
import tempfile
|
21 |
-
|
|
|
22 |
with tempfile.TemporaryDirectory() as temp_dir:
|
23 |
# Chemins des fichiers cibles dans le répertoire temporaire
|
24 |
-
index_target = os.path.join(temp_dir, 'index.
|
25 |
-
hh_target = os.path.join(temp_dir, '
|
26 |
|
27 |
# Copier les fichiers dans le répertoire temporaire
|
28 |
shutil.copy(index_source, index_target)
|
|
|
18 |
import numpy as np
|
19 |
import shutil
|
20 |
import tempfile
|
21 |
+
index_source='index.faiss'
|
22 |
+
hh_source='index.pkl'
|
23 |
with tempfile.TemporaryDirectory() as temp_dir:
|
24 |
# Chemins des fichiers cibles dans le répertoire temporaire
|
25 |
+
index_target = os.path.join(temp_dir, 'index.faiss')
|
26 |
+
hh_target = os.path.join(temp_dir, 'index.pkl')
|
27 |
|
28 |
# Copier les fichiers dans le répertoire temporaire
|
29 |
shutil.copy(index_source, index_target)
|