Spaces:
Running
Running
fixed path for pdfs
Browse files- marimo/app.py +1 -1
marimo/app.py
CHANGED
|
@@ -41,7 +41,7 @@ async def download_pdf(pdf_name: str):
|
|
| 41 |
# Create a route to display a pdf
|
| 42 |
@app.get("/pdf/direct/{pdf_name}")
|
| 43 |
async def get_pdf_direct(pdf_name: str):
|
| 44 |
-
pdf_path = Path(f".
|
| 45 |
|
| 46 |
if not pdf_path.exists():
|
| 47 |
raise HTTPException(status_code=404, detail=f"PDF not found {pdf_path}")
|
|
|
|
| 41 |
# Create a route to display a pdf
|
| 42 |
@app.get("/pdf/direct/{pdf_name}")
|
| 43 |
async def get_pdf_direct(pdf_name: str):
|
| 44 |
+
pdf_path = Path(f"./pdfs/{pdf_name}")
|
| 45 |
|
| 46 |
if not pdf_path.exists():
|
| 47 |
raise HTTPException(status_code=404, detail=f"PDF not found {pdf_path}")
|