Spaces:
Sleeping
Sleeping
| # 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 | |