Spaces:
Running
Running
fixed path for pdfs
Browse files- marimo/app.py +1 -1
marimo/app.py
CHANGED
|
@@ -28,7 +28,7 @@ marimo_server = (
|
|
| 28 |
@app.get("/download-pdf/{pdf_name}")
|
| 29 |
async def download_pdf(pdf_name: str):
|
| 30 |
# Assuming PDFs are stored in a 'pdfs' directory
|
| 31 |
-
pdf_path = f".
|
| 32 |
|
| 33 |
if os.path.exists(pdf_path):
|
| 34 |
return FileResponse(
|
|
|
|
| 28 |
@app.get("/download-pdf/{pdf_name}")
|
| 29 |
async def download_pdf(pdf_name: str):
|
| 30 |
# Assuming PDFs are stored in a 'pdfs' directory
|
| 31 |
+
pdf_path = f"./pdfs/{pdf_name}"
|
| 32 |
|
| 33 |
if os.path.exists(pdf_path):
|
| 34 |
return FileResponse(
|