Spaces:
Runtime error
Runtime error
MikeCraBash
commited on
Commit
•
229a240
1
Parent(s):
8687285
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,12 @@ load_dotenv()
|
|
19 |
from langchain.document_loaders import PyMuPDFLoader
|
20 |
|
21 |
# Adjust the URL to the direct download format
|
22 |
-
file_id = "1JeA-w4kvbI3GHk9Dh_j19_Q0JUDE7hse"
|
|
|
23 |
direct_url = f"https://drive.google.com/uc?export=download&id={file_id}"
|
24 |
|
|
|
|
|
25 |
# Now load the document using the direct URL
|
26 |
docs = PyMuPDFLoader(direct_url).load()
|
27 |
|
|
|
19 |
from langchain.document_loaders import PyMuPDFLoader
|
20 |
|
21 |
# Adjust the URL to the direct download format
|
22 |
+
# file_id = "1JeA-w4kvbI3GHk9Dh_j19_Q0JUDE7hse"
|
23 |
+
file_id = "12cvKg19CJf-wt98q5sPJctjp5fW-nsh6"
|
24 |
direct_url = f"https://drive.google.com/uc?export=download&id={file_id}"
|
25 |
|
26 |
+
https://drive.google.com/file/d/12cvKg19CJf-wt98q5sPJctjp5fW-nsh6/view?usp=sharing
|
27 |
+
|
28 |
# Now load the document using the direct URL
|
29 |
docs = PyMuPDFLoader(direct_url).load()
|
30 |
|