Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -271,7 +271,7 @@ async def conversation_websocket(websocket: WebSocket, session_id: str):
|
|
271 |
# ---------------- Serve Angular UI if exists ------------------------
|
272 |
static_dir = Path(__file__).parent / "static"
|
273 |
if static_dir.exists():
|
274 |
-
|
275 |
|
276 |
# Mount static files with custom handler for Angular routing
|
277 |
@app.get("/{path:path}")
|
@@ -295,8 +295,8 @@ if static_dir.exists():
|
|
295 |
# Mount static files for assets
|
296 |
app.mount("/", StaticFiles(directory=str(static_dir), html=True), name="static")
|
297 |
else:
|
298 |
-
|
299 |
|
300 |
if __name__ == "__main__":
|
301 |
-
|
302 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
271 |
# ---------------- Serve Angular UI if exists ------------------------
|
272 |
static_dir = Path(__file__).parent / "static"
|
273 |
if static_dir.exists():
|
274 |
+
log_info("π¨ Serving Angular UI from /static directory")
|
275 |
|
276 |
# Mount static files with custom handler for Angular routing
|
277 |
@app.get("/{path:path}")
|
|
|
295 |
# Mount static files for assets
|
296 |
app.mount("/", StaticFiles(directory=str(static_dir), html=True), name="static")
|
297 |
else:
|
298 |
+
log_info("β οΈ No UI found. Run 'cd flare-ui && npm run build' to build the UI.")
|
299 |
|
300 |
if __name__ == "__main__":
|
301 |
+
log_info("π Starting Flare backend on port 7860...")
|
302 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|