Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,6 @@ def process_pdf(uploaded_files, llm_model, n_criteria = num_criteria):
|
|
171 |
file_name_without_extension = os.path.splitext(os.path.basename(uploaded_file))[0]
|
172 |
|
173 |
id_number = file_name_without_extension.split('_')[1]
|
174 |
-
print(id_number)
|
175 |
|
176 |
pdf_processor = PDFProcessor_Unstructured(pdf_processing_config)
|
177 |
merged_chunks, tables, title = pdf_processor.process_pdf_file(uploaded_file)
|
@@ -262,7 +261,8 @@ def process_pdf(uploaded_files, llm_model, n_criteria = num_criteria):
|
|
262 |
|
263 |
# Convert new_row dictionary to a DataFrame for easy appending
|
264 |
new_row_df = pd.DataFrame([new_row])
|
265 |
-
|
|
|
266 |
# Check if the CSV file exists
|
267 |
if os.path.exists(csv_file_path):
|
268 |
# Load the existing data
|
|
|
171 |
file_name_without_extension = os.path.splitext(os.path.basename(uploaded_file))[0]
|
172 |
|
173 |
id_number = file_name_without_extension.split('_')[1]
|
|
|
174 |
|
175 |
pdf_processor = PDFProcessor_Unstructured(pdf_processing_config)
|
176 |
merged_chunks, tables, title = pdf_processor.process_pdf_file(uploaded_file)
|
|
|
261 |
|
262 |
# Convert new_row dictionary to a DataFrame for easy appending
|
263 |
new_row_df = pd.DataFrame([new_row])
|
264 |
+
print(new_row_df)
|
265 |
+
|
266 |
# Check if the CSV file exists
|
267 |
if os.path.exists(csv_file_path):
|
268 |
# Load the existing data
|