Spaces:
Runtime error
Runtime error
rohithk-03
commited on
Commit
·
39239b8
1
Parent(s):
1712d72
update return msg
Browse files
a.py
CHANGED
@@ -68,7 +68,9 @@ def upload_to_cloudinary(file_path):
|
|
68 |
)
|
69 |
|
70 |
upload_result = cloudinary.uploader.upload(
|
71 |
-
"output.pdf", resource_type="raw"
|
|
|
|
|
72 |
print(upload_result)
|
73 |
return upload_result.get("secure_url")
|
74 |
|
@@ -87,7 +89,7 @@ def main(pdf1_url, pdf2_url, output_pdf):
|
|
87 |
structured_summary1 = generate_structured_summary(text1)
|
88 |
structured_summary2 = generate_structured_summary(text2)
|
89 |
|
90 |
-
full_summary = f"{structured_summary1}
|
91 |
save_structured_pdf(full_summary, output_pdf)
|
92 |
print(f"Structured summaries saved to {output_pdf}")
|
93 |
|
|
|
68 |
)
|
69 |
|
70 |
upload_result = cloudinary.uploader.upload(
|
71 |
+
"output.pdf", resource_type="raw", # Ensure it's recognized as a raw file
|
72 |
+
type="upload", # Make it publicly accessible
|
73 |
+
access_mode="public")
|
74 |
print(upload_result)
|
75 |
return upload_result.get("secure_url")
|
76 |
|
|
|
89 |
structured_summary1 = generate_structured_summary(text1)
|
90 |
structured_summary2 = generate_structured_summary(text2)
|
91 |
|
92 |
+
full_summary = f"{structured_summary1}n{structured_summary2}"
|
93 |
save_structured_pdf(full_summary, output_pdf)
|
94 |
print(f"Structured summaries saved to {output_pdf}")
|
95 |
|