Shami96 commited on
Commit
78a61b3
·
verified ·
1 Parent(s): 62e9ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -33,8 +33,10 @@ def process_files(pdf_file, template_docx):
33
 
34
  # Save final document
35
  final_doc.save(output_path)
 
 
36
  with open(output_path, "rb") as f:
37
- return f
38
 
39
  demo = gr.Interface(
40
  fn=process_files,
 
33
 
34
  # Save final document
35
  final_doc.save(output_path)
36
+
37
+ # Properly indented return
38
  with open(output_path, "rb") as f:
39
+ return f
40
 
41
  demo = gr.Interface(
42
  fn=process_files,