#!/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