Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ documents = loader.load()
|
|
| 32 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
| 33 |
texts = text_splitter.split_documents(documents)
|
| 34 |
|
| 35 |
-
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl", model_kwargs={"device": "
|
| 36 |
|
| 37 |
persist_directory = 'db'
|
| 38 |
embedding = instructor_embeddings
|
|
|
|
| 32 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
| 33 |
texts = text_splitter.split_documents(documents)
|
| 34 |
|
| 35 |
+
instructor_embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl", model_kwargs={"device": "cuda"})
|
| 36 |
|
| 37 |
persist_directory = 'db'
|
| 38 |
embedding = instructor_embeddings
|