sudhir2016 commited on
Commit
2164111
·
1 Parent(s): 5f0646b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -7,8 +7,6 @@ from langchain.document_loaders import TextLoader
7
  embeddings = HuggingFaceEmbeddings()
8
  g=open('Gita.txt')
9
  Gita=g.read()
10
- #loader = TextLoader('Gita.txt')
11
- #documents = loader.load()
12
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
13
  texts = text_splitter.split_text(Gita)
14
  docsearch = Chroma.from_texts(texts, embeddings)
 
7
  embeddings = HuggingFaceEmbeddings()
8
  g=open('Gita.txt')
9
  Gita=g.read()
 
 
10
  text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
11
  texts = text_splitter.split_text(Gita)
12
  docsearch = Chroma.from_texts(texts, embeddings)