Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -11,8 +11,9 @@ from pydantic import BaseModel
|
|
| 11 |
from langchain_nomic import NomicEmbeddings # ✅ Using Nomic Embeddings with API Key
|
| 12 |
|
| 13 |
# ✅ Redirect Nomic's cache and working directory to writable locations
|
| 14 |
-
os.environ["
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
# ✅ Load Environment Variables
|
| 18 |
load_dotenv()
|
|
|
|
| 11 |
from langchain_nomic import NomicEmbeddings # ✅ Using Nomic Embeddings with API Key
|
| 12 |
|
| 13 |
# ✅ Redirect Nomic's cache and working directory to writable locations
|
| 14 |
+
os.environ["HOME"] = "/tmp"
|
| 15 |
+
|
| 16 |
+
os.environ["NOMIC_HOME"] = "/tmp/.nomic"
|
| 17 |
|
| 18 |
# ✅ Load Environment Variables
|
| 19 |
load_dotenv()
|