Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,7 @@ def recursive_chunking(text, source, chunk_size=500, overlap=100):
|
|
| 93 |
|
| 94 |
# --- CORE SEARCH ENGINE ---
|
| 95 |
class DocSearchEngine:
|
| 96 |
-
def __init__(self):
|
| 97 |
# Force CPU and DISABLE "Meta Device" loading for both models
|
| 98 |
self.bi_encoder = SentenceTransformer(
|
| 99 |
'all-MiniLM-L6-v2',
|
|
|
|
| 93 |
|
| 94 |
# --- CORE SEARCH ENGINE ---
|
| 95 |
class DocSearchEngine:
|
| 96 |
+
def __init__(self):
|
| 97 |
# Force CPU and DISABLE "Meta Device" loading for both models
|
| 98 |
self.bi_encoder = SentenceTransformer(
|
| 99 |
'all-MiniLM-L6-v2',
|