Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,10 +73,11 @@ def initialize_faiss():
|
|
73 |
index = faiss.IndexIDMap(faiss.IndexFlatL2(384))
|
74 |
|
75 |
# Move to GPU if available
|
76 |
-
if torch.cuda.is_available():
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
80 |
|
81 |
return index
|
82 |
|
|
|
73 |
index = faiss.IndexIDMap(faiss.IndexFlatL2(384))
|
74 |
|
75 |
# Move to GPU if available
|
76 |
+
# if torch.cuda.is_available():
|
77 |
+
# print("CUDA is available, moving FAISS index to GPU.")
|
78 |
+
# index = faiss.index_cpu_to_all_gpus(index)
|
79 |
+
|
80 |
+
# print("FAISS index is now on GPU.")
|
81 |
|
82 |
return index
|
83 |
|