File size: 464 Bytes
0bae6cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@echo off
echo Opening ChuanhuChatGPT...

if not exist "%~dp0\ChuanhuChat\Scripts" (
    echo Creating venv...
    python -m venv ChuanhuChat

    cd /d "%~dp0\ChuanhuChat\Scripts"
    call activate.bat

    cd /d "%~dp0"
    python -m pip install --upgrade pip
    pip install -r requirements.txt
)

goto :activate_venv

:launch
%PYTHON% ChuanhuChatbot.py %*
pause

:activate_venv
set PYTHON="%~dp0\ChuanhuChat\Scripts\Python.exe"
echo venv %PYTHON%
goto :launch