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