Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from llama_index.llms import Replicate
|
|
4 |
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 |
-
|
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.")
|
|
|
4 |
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.")
|