2p990i9hpral Keldos commited on
Commit
9f929a0
1 Parent(s): 107e3ff

change venv folder name and merge installation and run into one file (#839)

Browse files

* Add korean language set

Add korean language set

* Support easier install for windows users

added install.bat (create venv and install requirements)
and modify the project to use venv.

* Delete Install_Windows.bat

Due to maintain consistency, I merged this code to run_Windows.bat

* Update run_Windows.bat

Combines installation and run into one.

---------

Co-authored-by: Keldos <i@keldos.me>

Files changed (1) hide show
  1. run_Windows.bat +21 -2
run_Windows.bat CHANGED
@@ -1,5 +1,24 @@
1
  @echo off
2
  echo Opening ChuanhuChatGPT...
3
 
4
- REM Open powershell via bat
5
- start powershell.exe -NoExit -Command "python ./ChuanhuChatbot.py"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @echo off
2
  echo Opening ChuanhuChatGPT...
3
 
4
+ if not exist "%~dp0\ChuanhuChat\Scripts" (
5
+ echo Creating venv...
6
+ python -m venv ChuanhuChat
7
+
8
+ cd /d "%~dp0\ChuanhuChat\Scripts"
9
+ call activate.bat
10
+
11
+ cd /d "%~dp0"
12
+ pip install -r requirements.txt
13
+ )
14
+
15
+ goto :activate_venv
16
+
17
+ :launch
18
+ %PYTHON% ChuanhuChatbot.py %*
19
+ pause
20
+
21
+ :activate_venv
22
+ set PYTHON="%~dp0\ChuanhuChat\Scripts\Python.exe"
23
+ echo venv %PYTHON%
24
+ goto :launch