geethareddy commited on
Commit
a7e2982
·
verified ·
1 Parent(s): 9711148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -86,9 +86,7 @@ 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
- 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:
@@ -302,4 +300,4 @@ def create_interface():
302
 
303
  if __name__ == "__main__":
304
  app = create_interface()
305
- app.launch()
 
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:
 
300
 
301
  if __name__ == "__main__":
302
  app = create_interface()
303
+ app.launch()