Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -176,8 +176,8 @@ if uploaded_files:
|
|
176 |
# Table Extraction
|
177 |
# L = []
|
178 |
output_list = []
|
179 |
-
|
180 |
-
|
181 |
elements = partition_pdf(filename=pdf.name, strategy=strategy, infer_table_structure=True, model_name=model_name)
|
182 |
with NamedTemporaryFile(dir=".", suffix=".json") as f:
|
183 |
elements_to_json(elements, filename=f"{f.name.split('/')[-1]}")
|
|
|
176 |
# Table Extraction
|
177 |
# L = []
|
178 |
output_list = []
|
179 |
+
st.write(pdf.name)
|
180 |
+
st.write(type(pdf.name))
|
181 |
elements = partition_pdf(filename=pdf.name, strategy=strategy, infer_table_structure=True, model_name=model_name)
|
182 |
with NamedTemporaryFile(dir=".", suffix=".json") as f:
|
183 |
elements_to_json(elements, filename=f"{f.name.split('/')[-1]}")
|