varshakolanu commited on
Commit
481c911
·
verified ·
1 Parent(s): 4c12245

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -147,8 +147,5 @@ async def root():
147
  logger.info("Root endpoint accessed")
148
  return {"message": "Welcome to AI Coach API. Use POST /api/generate"}
149
 
150
- # Prevent direct execution in production
151
- if __name__ == "__main__":
152
- import uvicorn
153
- logger.info("Starting Uvicorn server for local development")
154
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
147
  logger.info("Root endpoint accessed")
148
  return {"message": "Welcome to AI Coach API. Use POST /api/generate"}
149
 
150
+ # Note: In Hugging Face Spaces, Uvicorn should be started via Dockerfile or Space configuration
151
+ # with command: uvicorn app:app --host 0.0.0.0 --port 7860