Spaces:
Sleeping
Sleeping
Commit
·
4389977
1
Parent(s):
57d3438
Move DOCX template path to src directory for better organization
Browse files- src/app.py +2 -2
src/app.py
CHANGED
|
@@ -15,7 +15,7 @@ app = FastAPI()
|
|
| 15 |
|
| 16 |
pypandoc.download_pandoc()
|
| 17 |
|
| 18 |
-
template_path = "template.docx"
|
| 19 |
DOC = Document(template_path)
|
| 20 |
|
| 21 |
class Email(str, Enum):
|
|
@@ -62,7 +62,7 @@ async def generate_proposal(data: dict):
|
|
| 62 |
architecture_diagram_path = temp_file.name
|
| 63 |
except httpx.HTTPError as e:
|
| 64 |
raise HTTPException(
|
| 65 |
-
status_code=500,
|
| 66 |
detail=f"Failed to generate architecture diagram: {str(e)}"
|
| 67 |
)
|
| 68 |
|
|
|
|
| 15 |
|
| 16 |
pypandoc.download_pandoc()
|
| 17 |
|
| 18 |
+
template_path = "src/template.docx"
|
| 19 |
DOC = Document(template_path)
|
| 20 |
|
| 21 |
class Email(str, Enum):
|
|
|
|
| 62 |
architecture_diagram_path = temp_file.name
|
| 63 |
except httpx.HTTPError as e:
|
| 64 |
raise HTTPException(
|
| 65 |
+
status_code=500,
|
| 66 |
detail=f"Failed to generate architecture diagram: {str(e)}"
|
| 67 |
)
|
| 68 |
|