andregprospero commited on
Commit
cecdff4
·
verified ·
1 Parent(s): 1dd4aad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ async def generate_pop(request: Request):
18
  doc.render(data)
19
 
20
  filename = f"POP_{uuid.uuid4().hex[:8]}.docx"
21
- filepath = Path(filename)
22
  doc.save(filepath)
23
 
24
  return FileResponse(
 
18
  doc.render(data)
19
 
20
  filename = f"POP_{uuid.uuid4().hex[:8]}.docx"
21
+ filepath = Path("/tmp") / filename
22
  doc.save(filepath)
23
 
24
  return FileResponse(