Spaces:
Running
Running
Update app/config.py
Browse files- app/config.py +5 -3
app/config.py
CHANGED
@@ -3,12 +3,14 @@ import os
|
|
3 |
class Config:
|
4 |
@staticmethod
|
5 |
def is_huggingface():
|
6 |
-
return os.environ.get("SPACE_ID") is not None
|
7 |
|
8 |
@staticmethod
|
9 |
def get_vector_store_type():
|
10 |
-
return "faiss" # Always use FAISS
|
11 |
|
12 |
@staticmethod
|
13 |
def get_model_path():
|
14 |
-
|
|
|
|
|
|
3 |
class Config:
|
4 |
@staticmethod
|
5 |
def is_huggingface():
|
6 |
+
return os.environ.get("SPACE_ID") is not None or True # Always return True to force FAISS usage
|
7 |
|
8 |
@staticmethod
|
9 |
def get_vector_store_type():
|
10 |
+
return "faiss" # Always use FAISS
|
11 |
|
12 |
@staticmethod
|
13 |
def get_model_path():
|
14 |
+
if Config.is_huggingface():
|
15 |
+
return "sentence-transformers/multi-qa-MiniLM-L6-cos-v1"
|
16 |
+
return "multi-qa-MiniLM-L6-cos-v1"
|