ganesh3 commited on
Commit
e6ba543
·
verified ·
1 Parent(s): 2c63445

Create config.py

Browse files
Files changed (1) hide show
  1. app/config.py +14 -0
app/config.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
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"