Spaces:
Sleeping
Sleeping
second commit
Browse files- roaringkitty.py +2 -1
roaringkitty.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
2 |
from langchain.document_loaders.csv_loader import CSVLoader
|
3 |
from langchain.embeddings import CacheBackedEmbeddings
|
@@ -9,7 +10,7 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
9 |
|
10 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
11 |
|
12 |
-
def roaringkiity_chain():
|
13 |
# build FAISS index from csv
|
14 |
loader = CSVLoader(file_path="./data/roaringkitty.csv", source_column="Link")
|
15 |
data = loader.load()
|
|
|
1 |
+
import chainlit as cl
|
2 |
from langchain.embeddings.openai import OpenAIEmbeddings
|
3 |
from langchain.document_loaders.csv_loader import CSVLoader
|
4 |
from langchain.embeddings import CacheBackedEmbeddings
|
|
|
10 |
|
11 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
12 |
|
13 |
+
async def roaringkiity_chain():
|
14 |
# build FAISS index from csv
|
15 |
loader = CSVLoader(file_path="./data/roaringkitty.csv", source_column="Link")
|
16 |
data = loader.load()
|