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