File size: 957 Bytes
032a4fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@echo off
title Prism Studio Launcher
echo ==========================================
echo       Starting Prism Studio API
echo ==========================================

REM Check if virtual environment exists
if not exist ".venv\Scripts\python.exe" (
    echo [ERROR] Virtual environment not found in .venv\
    echo Please make sure the project is set up correctly.
    pause
    exit /b
)

echo [INFO] Starting Uvicorn server in the background...
REM Start uvicorn in a new command window so you can see the logs and close it when done
start "Prism Studio Server" cmd /k ".\.venv\Scripts\python.exe -m uvicorn mlplo.api:app --host 127.0.0.1 --port 8000"

echo [INFO] Waiting for server to initialize (this takes a moment to load the model)...
timeout /t 15 /nobreak > NUL

echo [INFO] Opening Prism Studio in your default web browser...
start http://127.0.0.1:8000

echo [SUCCESS] Launcher completed. You can close this window.
timeout /t 2 > NUL
exit