Spaces:
Running
Running
File size: 515 Bytes
f94ab16 282f966 f94ab16 282f966 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
"""
Startup script for Medical RAG AI Advisor API
"""
import sys
import os
import uvicorn
# Add core to Python path
sys.path.append(os.path.join(os.path.dirname(__file__), 'core'))
if __name__ == "__main__":
uvicorn.run(
"api.app:app",
host="127.0.0.1", # Use localhost instead of 0.0.0.0
port=8000,
reload=True, # Disable reload in production for faster startup
log_level="info",
access_log=True,
workers=1 # Single worker for development
) |