Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download start.bat from MsThai/switchlingo: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/MsThai/switchlingo/resolve/main/start.bat
- Command line
-
hf download hf://spaces/MsThai/switchlingo/start.bat
-
curl -L -o start.bat https://huggingface.co/spaces/MsThai/switchlingo/resolve/main/start.bat
443 Bytes
| @echo off | |
| REM Ox Translate - Windows launcher. Double-click to run, then open http://localhost:8000 | |
| cd /d %~dp0 | |
| if not exist .venv ( | |
| python -m venv .venv | |
| call .venv\Scripts\activate | |
| pip install -r requirements.txt | |
| ) else ( | |
| call .venv\Scripts\activate | |
| ) | |
| if exist .env for /f "usebackq eol=# tokens=1,* delims==" %%a in (".env") do set %%a=%%b | |
| start "" http://localhost:8000 | |
| python -m uvicorn app.server:app --host 127.0.0.1 --port 8000 | |