MedSpace / start.sh
kbsss's picture
Upload folder using huggingface_hub
df8b435 verified
Raw
History Blame Contribute Delete
566 Bytes
#!/bin/bash
# Set default PORT if not set (for Streamlit)
export PORT=${PORT:-8501}
# Qdrant mode - No local KB download needed!
echo "✅ Using Remote Vector Database (Qdrant)"
echo "Starting Healthcare QA Chatbot..."
# Start API in background
echo "Starting FastAPI backend..."
uvicorn api.main:app --host 0.0.0.0 --port 8000 &
# Start Streamlit frontend
# Railway provides $PORT. Streamlit binds to it for public access.
echo "Starting Streamlit frontend on port $PORT..."
streamlit run frontend/streamlit_app.py --server.port $PORT --server.address 0.0.0.0