Spaces:
Running
Running
Update backend/utils.py
Browse files- backend/utils.py +2 -2
backend/utils.py
CHANGED
@@ -41,7 +41,7 @@ async def write_md_to_pdf(text: str, filename: str = "") -> str:
|
|
41 |
Returns:
|
42 |
str: The encoded file path of the generated PDF.
|
43 |
"""
|
44 |
-
file_path = f"outputs/{filename[:60]}.pdf"
|
45 |
|
46 |
try:
|
47 |
from md2pdf.core import md2pdf
|
@@ -67,7 +67,7 @@ async def write_md_to_word(text: str, filename: str = "") -> str:
|
|
67 |
Returns:
|
68 |
str: The encoded file path of the generated DOCX.
|
69 |
"""
|
70 |
-
file_path = f"outputs/{filename[:60]}.docx"
|
71 |
|
72 |
try:
|
73 |
from docx import Document
|
|
|
41 |
Returns:
|
42 |
str: The encoded file path of the generated PDF.
|
43 |
"""
|
44 |
+
file_path = f"/tmp/outputs/{filename[:60]}.pdf"
|
45 |
|
46 |
try:
|
47 |
from md2pdf.core import md2pdf
|
|
|
67 |
Returns:
|
68 |
str: The encoded file path of the generated DOCX.
|
69 |
"""
|
70 |
+
file_path = f"/tmp/outputs/{filename[:60]}.docx"
|
71 |
|
72 |
try:
|
73 |
from docx import Document
|