Spaces:
Runtime error
Runtime error
Commit
•
e204e2c
1
Parent(s):
2ce6ac3
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from langchain import HuggingFaceHub
|
|
21 |
from langchain.document_loaders import UnstructuredPDFLoader
|
22 |
|
23 |
file = requests.get("https://huggingface.co/spaces/naman4jain/talktopdf/resolve/main/cricket_tutorial.pdf")
|
24 |
-
loader = UnstructuredPDFLoader(file)
|
25 |
|
26 |
document = loader.load()
|
27 |
|
|
|
21 |
from langchain.document_loaders import UnstructuredPDFLoader
|
22 |
|
23 |
file = requests.get("https://huggingface.co/spaces/naman4jain/talktopdf/resolve/main/cricket_tutorial.pdf")
|
24 |
+
loader = UnstructuredPDFLoader(file.pdf)
|
25 |
|
26 |
document = loader.load()
|
27 |
|