Adive01 commited on
Commit
032a4fa
·
verified ·
1 Parent(s): e945543

Upload launch.bat with huggingface_hub

Browse files
Files changed (1) hide show
  1. launch.bat +27 -0
launch.bat ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ title Prism Studio Launcher
3
+ echo ==========================================
4
+ echo Starting Prism Studio API
5
+ echo ==========================================
6
+
7
+ REM Check if virtual environment exists
8
+ if not exist ".venv\Scripts\python.exe" (
9
+ echo [ERROR] Virtual environment not found in .venv\
10
+ echo Please make sure the project is set up correctly.
11
+ pause
12
+ exit /b
13
+ )
14
+
15
+ echo [INFO] Starting Uvicorn server in the background...
16
+ REM Start uvicorn in a new command window so you can see the logs and close it when done
17
+ start "Prism Studio Server" cmd /k ".\.venv\Scripts\python.exe -m uvicorn mlplo.api:app --host 127.0.0.1 --port 8000"
18
+
19
+ echo [INFO] Waiting for server to initialize (this takes a moment to load the model)...
20
+ timeout /t 15 /nobreak > NUL
21
+
22
+ echo [INFO] Opening Prism Studio in your default web browser...
23
+ start http://127.0.0.1:8000
24
+
25
+ echo [SUCCESS] Launcher completed. You can close this window.
26
+ timeout /t 2 > NUL
27
+ exit