Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
| 151 |
-
|
| 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
|
|
|
|
|
|
|
|
|