Spaces:
Sleeping
Sleeping
2p990i9hpral
change venv folder name and merge installation and run into one file (#839)
9f929a0 unverified Download run_Windows.bat from markqiu/prinvest_mate: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/markqiu/prinvest_mate/resolve/main/run_Windows.bat
- Command line
-
hf download hf://spaces/markqiu/prinvest_mate/run_Windows.bat
-
curl -L -o run_Windows.bat https://huggingface.co/spaces/markqiu/prinvest_mate/resolve/main/run_Windows.bat
432 Bytes
| @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" | |
| 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 | |