geethareddy commited on
Commit
0ca211a
·
verified ·
1 Parent(s): 5c3901b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -86,7 +86,9 @@ def save_report_as_pdf(role, supervisor_name, project_id, checklist, suggestions
86
  pdf.multi_cell(0, 10, clean_text_for_pdf(line))
87
  pdf.output(file_path)
88
 
89
- return file_path, filename
 
 
90
 
91
  def upload_pdf_to_salesforce_and_update_link(supervisor_name, project_id, pdf_path, pdf_name, checklist, suggestions):
92
  try:
@@ -302,4 +304,3 @@ if __name__ == "__main__":
302
  app = create_interface()
303
  app.launch()
304
 
305
- ChatGPT said:
 
86
  pdf.multi_cell(0, 10, clean_text_for_pdf(line))
87
  pdf.output(file_path)
88
 
89
+ temp_pdf_path = "/tmp/" + os.path.basename(file_path)
90
+ shutil.copy(file_path, temp_pdf_path)
91
+ return temp_pdf_path,filename
92
 
93
  def upload_pdf_to_salesforce_and_update_link(supervisor_name, project_id, pdf_path, pdf_name, checklist, suggestions):
94
  try:
 
304
  app = create_interface()
305
  app.launch()
306