Fix: use python -m for scripts in gradio_tabs

This commit is contained in:
litagin02
2024-09-09 17:27:23 +09:00
parent a9c5d18eec
commit dc5f42e9a1
5 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ chcp 65001 > NUL
pushd %~dp0 pushd %~dp0
echo Running gradio_tabs/dataset.py... echo Running gradio_tabs/dataset.py...
venv\Scripts\python gradio_tabs/dataset.py venv\Scripts\python -m gradio_tabs.dataset
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% ) if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )

View File

@@ -3,7 +3,7 @@ chcp 65001 > NUL
pushd %~dp0 pushd %~dp0
echo Running gradio_tabs/inference.py... echo Running gradio_tabs/inference.py...
venv\Scripts\python gradio_tabs/inference.py venv\Scripts\python -m gradio_tabs.inference
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% ) if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )

View File

@@ -3,7 +3,7 @@ chcp 65001 > NUL
pushd %~dp0 pushd %~dp0
echo Running gradio_tabs/merge.py... echo Running gradio_tabs/merge.py...
venv\Scripts\python gradio_tabs/merge.py venv\Scripts\python -m gradio_tabs.merge
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% ) if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )

View File

@@ -3,7 +3,7 @@ chcp 65001 > NUL
pushd %~dp0 pushd %~dp0
echo Running gradio_tabs/style_vectors.py... echo Running gradio_tabs/style_vectors.py...
venv\Scripts\python gradio_tabs/style_vectors.py venv\Scripts\python -m gradio_tabs.style_vectors
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% ) if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )

View File

@@ -3,7 +3,7 @@ chcp 65001 > NUL
pushd %~dp0 pushd %~dp0
echo Running gradio_tabs/train.py... echo Running gradio_tabs/train.py...
venv\Scripts\python gradio_tabs/train.py venv\Scripts\python -m gradio_tabs.train
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% ) if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )