audioSentiment / start.sh
temp12821's picture
Add HF Spaces deployment fixes
dce0d90
raw
history blame contribute delete
403 Bytes
#!/bin/bash
# Start Flask in background
python flask_app.py &
# Wait a bit for Flask to start
sleep 2
# Start Streamlit on port 7860 with XSRF protection disabled (required for HF Spaces file uploads)
streamlit run streamlit_app.py --server.port 7860 --server.address 0.0.0.0 --server.headless true --browser.serverAddress 0.0.0.0 --browser.gatherUsageStats false --server.enableXsrfProtection false