mirror of
https://github.com/jasonppy/VoiceCraft.git
synced 2025-02-18 20:50:37 +01:00
Fix Repository Name Error and Enhance User Experience
This commit is contained in:
parent
a6a67899a8
commit
2f78e8d435
@ -1,12 +1,8 @@
|
|||||||
:: Windows Docker Context Batch File
|
|
||||||
:: No need to install nvidia toolkit as Windows driver supports docker GPUs
|
|
||||||
:: Credit to github/jay-c88 for this
|
|
||||||
:: https://github.com/jasonppy/VoiceCraft/pull/25#issuecomment-2028053878
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
docker start jupyter > nul 2> nul || ^
|
echo Creating and running the Jupyter container...
|
||||||
docker run -it ^
|
|
||||||
-d ^
|
docker run -it -d ^
|
||||||
--gpus all ^
|
--gpus all ^
|
||||||
-p 8888:8888 ^
|
-p 8888:8888 ^
|
||||||
--name jupyter ^
|
--name jupyter ^
|
||||||
@ -14,8 +10,20 @@ docker run -it ^
|
|||||||
-e NB_USER="%username%" ^
|
-e NB_USER="%username%" ^
|
||||||
-e CHOWN_HOME=yes ^
|
-e CHOWN_HOME=yes ^
|
||||||
-e GRANT_SUDO=yes ^
|
-e GRANT_SUDO=yes ^
|
||||||
|
-e JUPYTER_TOKEN=mytoken ^
|
||||||
-w "/home/%username%" ^
|
-w "/home/%username%" ^
|
||||||
-v %cd%:"/home/%username%/work" ^
|
-v "%cd%":"/home/%username%/work" ^
|
||||||
jupyter/base-notebook
|
jupyter/base-notebook
|
||||||
|
|
||||||
|
if %errorlevel% == 0 (
|
||||||
|
echo Jupyter container created and running.
|
||||||
|
|
||||||
|
echo Jupyter container is running.
|
||||||
|
echo To access the Jupyter web UI, please follow these steps:
|
||||||
|
echo 1. Open your web browser
|
||||||
|
echo 2. Navigate to http://localhost:8888/?token=mytoken
|
||||||
|
echo 3. !! The default token is "mytoken" and should be changed. !!
|
||||||
pause
|
pause
|
||||||
|
) else (
|
||||||
|
echo Failed to create and run the Jupyter container.
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user