moazx's picture
Merge branch 'main' of https://huggingface.co/spaces/moazx/API
57a4efd
raw
history blame contribute delete
515 Bytes
"""
Startup script for Lung Cancer 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
)