-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
40 lines (29 loc) · 809 Bytes
/
Copy pathrun.bat
File metadata and controls
40 lines (29 loc) · 809 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
30
31
32
33
34
35
36
37
38
39
40
@echo off
if not exist venv (
echo [INFO] Creating virtual environment...
python -m venv venv
)
call venv\Scripts\activate.bat
setlocal enabledelayedexpansion
if not exist .env (
echo [INFO] .env file not found, creating one...
set /p API_KEY="Enter your Mistral API key: "
set /p MODEL="Enter the Mistral model (default: mistral-large-latest): "
if "!MODEL!"=="" (
set MODEL=mistral-large-latest
)
(
echo MISTRAL_API_KEY=!API_KEY!
echo MISTRAL_MODEL=!MODEL!
) > .env
echo [INFO] .env file created
)
endlocal
echo [INFO] Installing dependencies...
pip install --upgrade pip
pip install -r requirements.txt
echo [INFO] Running tests...
pytest -v backend/test.py
echo [INFO] Starting the application...
python backend\__main__.py
pause