Show GPU list in the UI only if the PC has more than 1 GPU

This commit is contained in:
cmdr2 2022-11-10 16:34:01 +05:30
parent 1fed3ad532
commit 3f26d03166
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@
<script src="media/js/inpainting-editor.js?v=1"></script>
<script src="media/js/image-modifiers.js?v=6"></script>
<script src="media/js/auto-save.js?v=7"></script>
<script src="media/js/main.js?v=10"></script>
<script src="media/js/main.js?v=11"></script>
<script src="media/js/themes.js?v=4"></script>
<script src="media/js/dnd.js?v=8"></script>
<script>

View File

@ -1,7 +1,7 @@
"use strict" // Opt in to a restricted variant of JavaScript
const HEALTH_PING_INTERVAL = 5 // seconds
const MAX_INIT_IMAGE_DIMENSION = 768
const MIN_GPUS_TO_SHOW_SELECTION = 1
const MIN_GPUS_TO_SHOW_SELECTION = 2
const IMAGE_REGEX = new RegExp('data:image/[A-Za-z]+;base64')