Spaces:
Sleeping
Sleeping
Pramish Pandey
commited on
Commit
·
6073ab9
1
Parent(s):
491f9e5
Digital Galatea
Browse files- run_web.bat +0 -31
run_web.bat
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
@echo off
|
| 2 |
-
echo Starting Galatea Web Interface...
|
| 3 |
-
echo.
|
| 4 |
-
|
| 5 |
-
REM Check if Python is installed and in PATH
|
| 6 |
-
where python >nul 2>&1
|
| 7 |
-
if %ERRORLEVEL% NEQ 0 (
|
| 8 |
-
echo Python not found in PATH. Please install Python and try again.
|
| 9 |
-
pause
|
| 10 |
-
exit /b 1
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
REM Check if required directories exist, create if not
|
| 14 |
-
if not exist templates mkdir templates
|
| 15 |
-
if not exist static\css mkdir static\css
|
| 16 |
-
if not exist static\js mkdir static\js
|
| 17 |
-
|
| 18 |
-
REM Check if Flask is installed
|
| 19 |
-
python -c "import flask" >nul 2>&1
|
| 20 |
-
if %ERRORLEVEL% NEQ 0 (
|
| 21 |
-
echo Flask not installed. Installing now...
|
| 22 |
-
pip install flask
|
| 23 |
-
)
|
| 24 |
-
|
| 25 |
-
REM Run the application
|
| 26 |
-
echo Starting Flask server...
|
| 27 |
-
echo The web interface will be available at http://127.0.0.1:5000
|
| 28 |
-
echo Press Ctrl+C to stop the server
|
| 29 |
-
python app.py
|
| 30 |
-
|
| 31 |
-
pause
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|