DermaScan-AI / supervisord.conf
Meet Radadiya
Fix: disable Streamlit XSRF and CORS protection for HF Spaces file upload
1119c3a
raw
history blame contribute delete
753 Bytes
[supervisord]
nodaemon=true
logfile=/dev/stdout
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
[program:api]
command=python -m uvicorn api.app:app --host 0.0.0.0 --port 8000
directory=/app
environment=PYTHONPATH="/app"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:frontend]
command=python -m streamlit run app.py --server.port 7860 --server.address 0.0.0.0 --server.headless true --server.enableXsrfProtection false --server.enableCORS false
directory=/app/frontend
environment=PYTHONPATH="/app/frontend:/app"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0