diff --git a/index.html b/index.html index 479b645..32c1d8e 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,7 @@ +
@@ -44,24 +45,28 @@ +
+
+
+
@@ -74,12 +79,14 @@ +
+
@@ -94,6 +101,7 @@ +
diff --git a/js/app.js b/js/app.js index 5102cdd..bd63d83 100644 --- a/js/app.js +++ b/js/app.js @@ -597,6 +597,9 @@ // Populate from config populateFromConfig(config); + // Update tooltips after clearing them + updateTooltips(); + // Hide loading and set focus loadingIndicator.style.display = 'none'; hfModelInput.focus(); @@ -628,7 +631,12 @@ // Show config errors function showConfigErrors() { Object.keys(window.configErrors).forEach(fieldId => { - const errorIcon = document.querySelector(`#${fieldId} ~ .error-icon`); + let errorIcon; + if (fieldId === 'hf-model') { + errorIcon = document.querySelector('#hf-model + .error-icon'); + } else { + errorIcon = document.querySelector(`#${fieldId} ~ .error-icon`); + } if (errorIcon) { errorIcon.style.display = 'inline-block'; errorIcon.setAttribute('data-tooltip-ru', window.configErrors[fieldId]);