Spaces:
Runtime error
Runtime error
Commit
·
74e55fe
1
Parent(s):
212c0f9
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ Gita=open('Gita.txt')
|
|
9 |
loader = TextLoader('Gita.txt')
|
10 |
documents = loader.load()
|
11 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
12 |
-
docs = text_splitter.
|
13 |
qdrant = Qdrant.from_documents(
|
14 |
docs, embeddings,
|
15 |
location=":memory:",
|
|
|
9 |
loader = TextLoader('Gita.txt')
|
10 |
documents = loader.load()
|
11 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
12 |
+
docs = text_splitter.split_documents(documents)
|
13 |
qdrant = Qdrant.from_documents(
|
14 |
docs, embeddings,
|
15 |
location=":memory:",
|