aboutsummaryrefslogtreecommitdiffstats
path: root/detection.py
diff options
context:
space:
mode:
authorDaniAndTheWeb <57776841+DaniAndTheWeb@users.noreply.github.com>2023-01-14 11:10:45 +0000
committerGitHub <noreply@github.com>2023-01-14 11:10:45 +0000
commit54fa77facc1849fbbfe61c1ca6d99b117d609d67 (patch)
treea64bcee9c01c8a75a45c612a41b9490d782a232d /detection.py
parenta407c9f0147c779865c940cbf62c7019dbc1f7b4 (diff)
downloadstable-diffusion-webui-gfx803-54fa77facc1849fbbfe61c1ca6d99b117d609d67.tar.gz
stable-diffusion-webui-gfx803-54fa77facc1849fbbfe61c1ca6d99b117d609d67.tar.bz2
stable-diffusion-webui-gfx803-54fa77facc1849fbbfe61c1ca6d99b117d609d67.zip
Fix detection script on macos
This fixes the script on macos
Diffstat (limited to 'detection.py')
-rw-r--r--detection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/detection.py b/detection.py
index eb4db0df..442c4be5 100644
--- a/detection.py
+++ b/detection.py
@@ -31,6 +31,8 @@ def check_gpu():
return "NVIDIA"
else:
return "Unknown"
+ else:
+ return "Unknown"
else:
# If the `lspci` command is available, use it to get the GPU vendor and model information
output = os.popen("lspci | grep -i vga").read()