Illia56 commited on
Commit
7ae2e83
·
1 Parent(s): 9946d9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.")