#!/bin/sh # Start virtual display for TripoSR texture baking (ModernGL), then run Streamlit. # Avoids xvfb-run which can hang or require xauth in some environments. set -e export DISPLAY=:99 # Start Xvfb in background; use -screen 0 so we have a valid display Xvfb :99 -screen 0 1024x768x24 -ac & XVFB_PID=$! # Give Xvfb a moment to start sleep 2 # Run Streamlit (replaces this process) exec streamlit run app.py --server.port=7860 --server.address=0.0.0.0