krishbakshi commited on
Commit
1beb574
·
verified ·
1 Parent(s): 814d624

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +3 -2
config.py CHANGED
@@ -29,6 +29,7 @@ def write_email(name, company, ai_email):
29
  if not os.path.exists(output_folder):
30
  os.makedirs(output_folder)
31
 
32
- doc.save(os.path.join(output_folder, f"{name}, {company}.docx"))
 
33
 
34
- return f"Email for {name}, {company} has been saved as a Word document."
 
29
  if not os.path.exists(output_folder):
30
  os.makedirs(output_folder)
31
 
32
+ file_path = os.path.join(output_folder, f"{name}, {company}.docx")
33
+ doc.save(file_path)
34
 
35
+ return file_path # Return the file path for Gradio to use