Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ pdf_file = st.file_uploader("Choose a PDF file", type="pdf")
|
|
56 |
|
57 |
if pdf_file is not None:
|
58 |
# Extract the text content from the uploaded PDF
|
59 |
-
document_text = extract_text_from_pdf(Solar Power System-An Introductory Guidebook.pdf)
|
60 |
|
61 |
# Split the document into chunks (adjust chunk size as needed)
|
62 |
chunk_size = 1000 # Size of each chunk of text for embedding
|
|
|
56 |
|
57 |
if pdf_file is not None:
|
58 |
# Extract the text content from the uploaded PDF
|
59 |
+
document_text = extract_text_from_pdf('Solar Power System-An Introductory Guidebook.pdf')
|
60 |
|
61 |
# Split the document into chunks (adjust chunk size as needed)
|
62 |
chunk_size = 1000 # Size of each chunk of text for embedding
|