From 61a353397451e50f5f4f498d56a1b1fb706fba13 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Mon, 10 Nov 2025 15:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restart_web.sh | 50 -------------------------------------------------- start_web.bat | 7 +++++++ start_web.sh | 10 ---------- 3 files changed, 7 insertions(+), 60 deletions(-) delete mode 100755 restart_web.sh create mode 100644 start_web.bat 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