danicafisher commited on
Commit
85bb406
1 Parent(s): 5023418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ from langchain_core.caches import InMemoryCache
8
  from operator import itemgetter
9
  from langchain_core.runnables.passthrough import RunnablePassthrough
10
  from langchain_qdrant import QdrantVectorStore, Qdrant
11
- from langchain_community.document_loaders import PyMuPDF
12
  import uuid
13
  import chainlit as cl
14
  import os
@@ -50,7 +50,7 @@ async def on_chat_start():
50
 
51
  # Load the style guide from the local file system
52
  style_guide_path = "./public/CoExperiences Writing Style Guide V1 (2024).pdf"
53
- loader = PyMuPDF(style_guide_path)
54
  style_guide_docs = loader.load()
55
  style_guide_text = "\n".join([doc.page_content for doc in style_guide_docs])
56
 
 
8
  from operator import itemgetter
9
  from langchain_core.runnables.passthrough import RunnablePassthrough
10
  from langchain_qdrant import QdrantVectorStore, Qdrant
11
+ from langchain_community.document_loaders import PyMuPDFLoader
12
  import uuid
13
  import chainlit as cl
14
  import os
 
50
 
51
  # Load the style guide from the local file system
52
  style_guide_path = "./public/CoExperiences Writing Style Guide V1 (2024).pdf"
53
+ loader = PyMuPDFLoader(style_guide_path)
54
  style_guide_docs = loader.load()
55
  style_guide_text = "\n".join([doc.page_content for doc in style_guide_docs])
56