Spaces:
Runtime error
Runtime error
Update scripts/process.py
Browse files- scripts/process.py +1 -1
scripts/process.py
CHANGED
@@ -40,7 +40,7 @@ def load_document(
|
|
40 |
extraction fails via Haystack.
|
41 |
Returns a list of type haystack.schema.Document
|
42 |
"""
|
43 |
-
|
44 |
if file_name.endswith('.pdf'):
|
45 |
converter = PDFToTextConverter(remove_numeric_tables=True)
|
46 |
if file_name.endswith('.txt'):
|
|
|
40 |
extraction fails via Haystack.
|
41 |
Returns a list of type haystack.schema.Document
|
42 |
"""
|
43 |
+
st.write(file_name)
|
44 |
if file_name.endswith('.pdf'):
|
45 |
converter = PDFToTextConverter(remove_numeric_tables=True)
|
46 |
if file_name.endswith('.txt'):
|