Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ class PDF(FPDF):
|
|
115 |
|
116 |
import os
|
117 |
|
118 |
-
def create_pdf_report(title, author_info, score, criteria, reasoning_list):
|
119 |
|
120 |
pdf = PDF()
|
121 |
pdf.add_page()
|
@@ -256,7 +256,7 @@ def process_pdf(uploaded_files, llm_model, n_criteria = num_criteria):
|
|
256 |
base_name = os.path.splitext(uploaded_file)[0]
|
257 |
output_path = os.path.join(output_dir, f"{base_name}_report.pdf")
|
258 |
|
259 |
-
create_pdf_report(title, author_result, scaled_total_score, criteria, reasoning_text)
|
260 |
output_files.append(output_path)
|
261 |
|
262 |
# Construct the processing message
|
|
|
115 |
|
116 |
import os
|
117 |
|
118 |
+
def create_pdf_report(title, author_info, score, criteria, reasoning_list, output_path):
|
119 |
|
120 |
pdf = PDF()
|
121 |
pdf.add_page()
|
|
|
256 |
base_name = os.path.splitext(uploaded_file)[0]
|
257 |
output_path = os.path.join(output_dir, f"{base_name}_report.pdf")
|
258 |
|
259 |
+
create_pdf_report(title, author_result, scaled_total_score, criteria, reasoning_text, output_path)
|
260 |
output_files.append(output_path)
|
261 |
|
262 |
# Construct the processing message
|