ciyidogan commited on
Commit
a3cefdf
Β·
verified Β·
1 Parent(s): f29c5f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- log("🎨 Serving Angular UI from /static directory")
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
- log("⚠️ No UI found. Run 'cd flare-ui && npm run build' to build the UI.")
299
 
300
  if __name__ == "__main__":
301
- log("🌐 Starting Flare backend on port 7860...")
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)