From ab7131eb05ddcb312accec97995dc1be64d7c829 Mon Sep 17 00:00:00 2001 From: "DESKTOP-72TV0V4\\caoxiaozhu" Date: Mon, 9 Mar 2026 12:50:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=20PowerShell=20?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20bat=20=E5=92=8C=20sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- ai-core/start.ps1 | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 ai-core/start.ps1 diff --git a/ai-core/start.ps1 b/ai-core/start.ps1 deleted file mode 100644 index 52e69f7..0000000 --- a/ai-core/start.ps1 +++ /dev/null @@ -1,35 +0,0 @@ -# AI-Core gRPC Server Startup Script - -Write-Host "Starting AI-Core Document Parser gRPC Server..." -ForegroundColor Green - -# Check if Python is installed -if (-not (Get-Command python -ErrorAction SilentlyContinue)) { - Write-Host "Error: Python is not installed or not in PATH" -ForegroundColor Red - exit 1 -} - -# Check if requirements are installed -$requirementsInstalled = python -c "import grpcio" 2>$null -if (-not $?) { - Write-Host "Installing Python dependencies..." -ForegroundColor Yellow - pip install -r requirements.txt - if ($LASTEXITCODE -ne 0) { - Write-Host "Error: Failed to install dependencies" -ForegroundColor Red - exit 1 - } -} - -# Generate gRPC code if needed -$pb2File = "proto\document_parser_pb2.py" -if (-not (Test-Path $pb2File)) { - Write-Host "Generating gRPC code..." -ForegroundColor Yellow - python generate_grpc.py - if ($LASTEXITCODE -ne 0) { - Write-Host "Error: Failed to generate gRPC code" -ForegroundColor Red - exit 1 - } -} - -# Start the server -Write-Host "Starting server on port 50051..." -ForegroundColor Green -python main.py --port 50051 --max-workers 10 --log-level INFO