Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 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,
|