Spaces:
Runtime error
Runtime error
Commit
·
7824737
1
Parent(s):
e3b08ea
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ llm = HuggingFaceHub(repo_id="google/flan-t5-xxl")
|
|
11 |
B=open('us.txt')
|
12 |
Biden=B.read()
|
13 |
loader = TextLoader(Biden)
|
|
|
14 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
15 |
texts = text_splitter.split_documents(documents)
|
16 |
db = Chroma.from_documents(texts, embeddings)
|
|
|
11 |
B=open('us.txt')
|
12 |
Biden=B.read()
|
13 |
loader = TextLoader(Biden)
|
14 |
+
documents = loader.load()
|
15 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
16 |
texts = text_splitter.split_documents(documents)
|
17 |
db = Chroma.from_documents(texts, embeddings)
|