Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,6 @@ load_dotenv()
|
|
21 |
|
22 |
app = Flask(__name__)
|
23 |
|
24 |
-
os.environ["HF_HOME"] = "/app/hf_cache"
|
25 |
-
os.environ["TRANSFORMERS_CACHE"] = "/app/hf_cache"
|
26 |
-
# Load Model and FAISS Index
|
27 |
model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
|
28 |
index = faiss.read_index("./faiss_index.bin")
|
29 |
|
|
|
21 |
|
22 |
app = Flask(__name__)
|
23 |
|
|
|
|
|
|
|
24 |
model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
|
25 |
index = faiss.read_index("./faiss_index.bin")
|
26 |
|