ganesh3 commited on
Commit
4565c57
·
verified ·
1 Parent(s): 4d0f080

Update app/config.py

Browse files
Files changed (1) hide show
  1. 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 in Hugging Face Spaces
11
 
12
  @staticmethod
13
  def get_model_path():
14
- return "sentence-transformers/multi-qa-MiniLM-L6-cos-v1"
 
 
 
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"