File size: 457 Bytes
2b9f9cb
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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