Quantum-API / start.sh
subatomicERROR's picture
✨ Added main router and integrated ollama & codelama endpoints
4b35062
raw
history blame
573 Bytes
#!/bin/bash
echo "πŸš€ Activating Quantum-API Startup"
# Start FastAPI (api.main:app) on port 7860
echo "πŸŒ€ Starting FastAPI on port 7860..."
uvicorn api.main:app --host 0.0.0.0 --port 7860 &> fastapi.log &
# Wait 3 seconds
sleep 3
# Show FastAPI logs if it failed
if ! pgrep -f "uvicorn api.main:app" > /dev/null; then
echo "❌ FastAPI failed to start. Logs:"
cat fastapi.log
exit 1
else
echo "βœ… FastAPI is running."
fi
# Start Streamlit app on port 8000
echo "✨ Launching Streamlit on port 8000..."
streamlit run app/app.py --server.port 8000