Spaces:
Running
Running
port reverted back
Browse files- marimo/app.py +2 -2
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"./pdfs/{pdf_name}"
|
| 32 |
|
| 33 |
if os.path.exists(pdf_path):
|
| 34 |
return FileResponse(
|
|
@@ -60,5 +60,5 @@ app.mount("", marimo_server.build())
|
|
| 60 |
# Run the server
|
| 61 |
if __name__ == "__main__":
|
| 62 |
import uvicorn
|
| 63 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
| 64 |
|
|
|
|
| 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(
|
|
|
|
| 60 |
# Run the server
|
| 61 |
if __name__ == "__main__":
|
| 62 |
import uvicorn
|
| 63 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
| 64 |
|