From 2d544407e64bed9328ee493d3daa095b20445b52 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 21 May 2023 21:27:50 -0700 Subject: Enable selecting specific GPU when transcribing Useful on devices with multiple GPUs, such as gaming laptops. * Update GUI/README.md. --- GUI/package.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'GUI/package.ps1') diff --git a/GUI/package.ps1 b/GUI/package.ps1 index e21d109..7bf032b 100644 --- a/GUI/package.ps1 +++ b/GUI/package.ps1 @@ -18,7 +18,9 @@ if (Test-Path $install_dir) { $py_dir = "Python" -rm -Recurse $py_dir +if (Test-Path $py_dir) { + rm -Recurse $py_dir +} if (-Not (Test-Path $py_dir)) { echo "Fetching python" @@ -39,6 +41,10 @@ if (-Not (Test-Path $py_dir)) { $pip_path = "$py_dir/get-pip.py" +if (Test-Path $pip_path) { + rm -Force $pip_path +} + if (-Not (Test-Path $pip_path)) { echo "Fetching pip" -- cgit v1.2.3