ganesh3's picture
Create config.py
e6ba543 verified
raw
history blame
350 Bytes
import os
class Config:
@staticmethod
def is_huggingface():
return os.environ.get("SPACE_ID") is not None
@staticmethod
def get_vector_store_type():
return "faiss" # Always use FAISS in Hugging Face Spaces
@staticmethod
def get_model_path():
return "sentence-transformers/multi-qa-MiniLM-L6-cos-v1"