med-gemma / run_app.sh
root
Add Hugging Face deployment configuration
594198f
raw
history blame contribute delete
434 Bytes
#!/bin/bash
# 1. Start the API in the background (&)
# We listen on localhost:8000 so the frontend can find it
uvicorn app.main:app --host 0.0.0.0 --port 8000 &
# 2. Wait 10 seconds for the model to load into RAM
echo "Waiting for Model to load..."
sleep 10
# 3. Start the Frontend
# We tell Streamlit to run on port 7860 (Hugging Face's default port)
streamlit run frontend/dashboard.py --server.port 7860 --server.address 0.0.0.0