Spaces:
Sleeping
Sleeping
File size: 767 Bytes
ec0daf5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/bash
# Configuration
PORT=8000
HOST="0.0.0.0"
echo "------------------------------------------------"
echo "π Starting Inference Studio..."
echo "------------------------------------------------"
# Check dependencies
echo "π Checking dependencies..."
if ! command -v ffmpeg &> /dev/null; then
echo "β οΈ Warning: ffmpeg not found. Video transcoding will fail."
else
echo "β
ffmpeg found."
fi
# Create necessary directories
echo "π Preparing directories..."
mkdir -p uploads/models uploads/videos uploads/results uploads/temp
# Start the server
echo "π‘ Server starting at http://localhost:$PORT"
echo "------------------------------------------------"
# Run with python directly as main.py has the uvicorn runner
python3 main.py
|