diff --git a/restart_web.sh b/restart_web.sh deleted file mode 100755 index e7364bd..0000000 --- a/restart_web.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Restart Pixelle-Video Web UI on port 8502 - -echo "🔄 Restarting Pixelle-Video Web UI on port 8502..." -echo "" - -# Check if config.yaml exists -if [ ! -f config.yaml ]; then - echo "⚠️ config.yaml not found, copying from config.example.yaml..." - cp config.example.yaml config.yaml - echo "✅ config.yaml created" - echo "" - echo "📝 Please edit config.yaml and fill in your API keys before using." - echo "" -fi - -# Check if port 8502 is in use -PORT=8502 -PID=$(lsof -ti:$PORT) - -if [ ! -z "$PID" ]; then - echo "⚠️ Port $PORT is in use by process $PID" - echo "🛑 Killing process $PID..." - kill -9 $PID - sleep 1 - echo "✅ Process killed" - echo "" -fi - -# Start Streamlit in background with nohup -echo "🚀 Starting Pixelle-Video Web UI in background..." -nohup uv run streamlit run web/app.py --server.port $PORT > nohup.out 2>&1 & - -# Wait a moment and check if the process started -sleep 2 -NEW_PID=$(lsof -ti:$PORT) - -if [ ! -z "$NEW_PID" ]; then - echo "✅ Pixelle-Video Web UI started successfully!" - echo "📝 Process ID: $NEW_PID" - echo "🌐 Access at: http://localhost:$PORT" - echo "📄 Logs: nohup.out" -else - echo "❌ Failed to start Pixelle-Video Web UI" - echo "📄 Check nohup.out for error details" - exit 1 -fi - -echo "" - diff --git a/start_web.bat b/start_web.bat new file mode 100644 index 0000000..62a339c --- /dev/null +++ b/start_web.bat @@ -0,0 +1,7 @@ +@echo off +REM Start Pixelle-Video Web UI +echo 🚀 Starting Pixelle-Video Web UI... +echo. +uv run streamlit run web/app.py + + diff --git a/start_web.sh b/start_web.sh index 99d9935..f91418e 100755 --- a/start_web.sh +++ b/start_web.sh @@ -4,16 +4,6 @@ echo "🚀 Starting Pixelle-Video Web UI..." echo "" -# Check if config.yaml exists -if [ ! -f config.yaml ]; then - echo "⚠️ config.yaml not found, copying from config.example.yaml..." - cp config.example.yaml config.yaml - echo "✅ config.yaml created" - echo "" - echo "📝 Please edit config.yaml and fill in your API keys before using." - echo "" -fi - # Start Streamlit uv run streamlit run web/app.py