-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
29 lines (25 loc) · 756 Bytes
/
run.bat
File metadata and controls
29 lines (25 loc) · 756 Bytes
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
29
@echo off
title AI Teaching Program - Server Running
color 0A
echo ========================================
echo DO NOT CLOSE THIS WINDOW
echo Installing required dependencies...
echo ========================================
echo
color 7
pip install flask google-generativeai python-dotenv markdown Pillow requests
color 0A
echo
echo =========================================
echo DO NOT CLOSE THIS WINDOW
echo The server is running on localhost:5000
echo =========================================
start http://localhost:5000/login
python app.py
if %errorlevel% neq 0 (
echo An error occurred while running the server.
echo Error code: %errorlevel%
pause
exit /b %errorlevel%
)
pause