Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ class ChatConfig:
|
|
| 17 |
DEFAULT_TOP_P = 0.95
|
| 18 |
|
| 19 |
client = InferenceClient(ChatConfig.MODEL)
|
| 20 |
-
embed_model = SentenceTransformer("all-MiniLM-L6-v2"
|
| 21 |
vector_dim = 384 # Embedding size
|
| 22 |
index = faiss.IndexFlatL2(vector_dim) # FAISS index
|
| 23 |
|
|
|
|
| 17 |
DEFAULT_TOP_P = 0.95
|
| 18 |
|
| 19 |
client = InferenceClient(ChatConfig.MODEL)
|
| 20 |
+
embed_model = SentenceTransformer("all-MiniLM-L6-v2", cache_folder="/tmp")
|
| 21 |
vector_dim = 384 # Embedding size
|
| 22 |
index = faiss.IndexFlatL2(vector_dim) # FAISS index
|
| 23 |
|