Spaces:
Runtime error
Runtime error
Commit
·
17cc7b0
1
Parent(s):
410704d
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from langchain.chains import RetrievalQA
|
|
8 |
import os
|
9 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = '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'
|
10 |
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl")
|
|
|
11 |
B=open('us.txt')
|
12 |
Biden=B.read()
|
13 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
|
|
8 |
import os
|
9 |
os.environ['HUGGINGFACEHUB_API_TOKEN'] = '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'
|
10 |
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl")
|
11 |
+
embeddings = HuggingFaceEmbeddings()
|
12 |
B=open('us.txt')
|
13 |
Biden=B.read()
|
14 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|