Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,9 @@ from llama_index.embeddings import LangchainEmbedding
|
|
| 5 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
| 6 |
from llama_index import set_global_service_context, ServiceContext, VectorStoreIndex, SimpleDirectoryReader
|
| 7 |
import os
|
|
|
|
|
|
|
|
|
|
| 8 |
# Ensure the environment variable is set
|
| 9 |
if "REPLICATE_API_TOKEN" not in os.environ:
|
| 10 |
raise ValueError("Please set the REPLICATE_API_TOKEN environment variable.")
|
|
|
|
| 5 |
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
|
| 6 |
from llama_index import set_global_service_context, ServiceContext, VectorStoreIndex, SimpleDirectoryReader
|
| 7 |
import os
|
| 8 |
+
|
| 9 |
+
PATH='/Data'
|
| 10 |
+
|
| 11 |
# Ensure the environment variable is set
|
| 12 |
if "REPLICATE_API_TOKEN" not in os.environ:
|
| 13 |
raise ValueError("Please set the REPLICATE_API_TOKEN environment variable.")
|