Spaces:
Sleeping
Sleeping
4th
Browse files- app.py +1 -1
- roaringkitty.py +1 -1
app.py
CHANGED
@@ -79,7 +79,7 @@ async def main(message):
|
|
79 |
visited_sources.add(source)
|
80 |
# Create the text element referenced in the message
|
81 |
source_elements.append(
|
82 |
-
cl.Text(content="https://www.youtube.com/watch?" + source, name="
|
83 |
)
|
84 |
|
85 |
if source_elements:
|
|
|
79 |
visited_sources.add(source)
|
80 |
# Create the text element referenced in the message
|
81 |
source_elements.append(
|
82 |
+
cl.Text(content="https://www.youtube.com/watch?GZTr1-Gp74U&ab_channel=RoaringKitty at T=" + source, name="Time in Video")
|
83 |
)
|
84 |
|
85 |
if source_elements:
|
roaringkitty.py
CHANGED
@@ -12,7 +12,7 @@ text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=10
|
|
12 |
|
13 |
async def roaringkiity_chain(prompt: str):
|
14 |
# build FAISS index from csv
|
15 |
-
loader = CSVLoader(file_path="./data/roaringkitty.csv", source_column="
|
16 |
data = loader.load()
|
17 |
documents = text_splitter.transform_documents(data)
|
18 |
store = LocalFileStore("./cache/")
|
|
|
12 |
|
13 |
async def roaringkiity_chain(prompt: str):
|
14 |
# build FAISS index from csv
|
15 |
+
loader = CSVLoader(file_path="./data/roaringkitty.csv", source_column="Time")
|
16 |
data = loader.load()
|
17 |
documents = text_splitter.transform_documents(data)
|
18 |
store = LocalFileStore("./cache/")
|