Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,6 +117,15 @@ async def download_file(file_name: str):
|
|
| 117 |
|
| 118 |
return FileResponse(file_path, media_type='video/mp4', filename=file_name)
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
# --- Server Start ---
|
| 121 |
@app.on_event("startup")
|
| 122 |
async def startup_event():
|
|
|
|
| 117 |
|
| 118 |
return FileResponse(file_path, media_type='video/mp4', filename=file_name)
|
| 119 |
|
| 120 |
+
#
|
| 121 |
+
# β
β
β
FIX IS HERE β
β
β
|
| 122 |
+
#
|
| 123 |
+
@app.get("/")
|
| 124 |
+
async def health_check():
|
| 125 |
+
""" Health check endpoint to fix 404 errors in log. """
|
| 126 |
+
return {"status": "ok"}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
# --- Server Start ---
|
| 130 |
@app.on_event("startup")
|
| 131 |
async def startup_event():
|