From 4930f36a1ad9d5a90d41000faa7042ad914c86ed Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 17 Aug 2023 16:09:37 +0530 Subject: [PATCH] Remove tensorrt demo settings --- ui/media/js/main.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 195d10c2..5ce65699 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2608,8 +2608,6 @@ function tunnelUpdate(event) { } } -let trtSettingsForced = false - function packagesUpdate(event) { let trtBtn = document.getElementById("toggle-tensorrt-install") let trtInstalled = "packages_installed" in event && "tensorrt" in event["packages_installed"] @@ -2625,22 +2623,6 @@ function packagesUpdate(event) { if (document.getElementById("toggle-tensorrt-install").innerHTML == "Uninstall") { document.querySelector("#enable_trt_config").classList.remove("displayNone") document.querySelector("#trt-build-config").classList.remove("displayNone") - - if (!trtSettingsForced) { - // settings for demo - promptField.value = "Dragons fighting with a knight, castle, war scene, fantasy, cartoon, flames, HD" - seedField.value = 3187947173 - widthField.value = 1024 - heightField.value = 768 - randomSeedField.checked = false - seedField.disabled = false - stableDiffusionModelField.value = "sd-v1-4" - - // numOutputsParallelField.classList.add("displayNone") - // document.querySelector("#num_outputs_parallel_label").classList.add("displayNone") - - trtSettingsForced = true - } } }