Sebastiankay commited on
Commit
7a9fbe6
·
1 Parent(s): 79e2259

8. Sept. 2024, 06:49

Browse files
Files changed (1) hide show
  1. _res/_custom.js +5 -0
_res/_custom.js CHANGED
@@ -43,6 +43,11 @@ function gradioColorChange() {
43
  document.querySelector("body").style.setProperty("--primary-950", "color-mix(in srgb, var(--primary-700) 90%, black)")
44
 
45
  const prompt_input = document.querySelector("#prompt_input")
 
 
 
 
 
46
  const imageRatioBtns = document.querySelectorAll("#image_ratio_buttons > div label")
47
  const width_selector = document.querySelector("#image_width_selector > label > input")
48
  const hight_selector = document.querySelector("#image_height_selector > label > input")
 
43
  document.querySelector("body").style.setProperty("--primary-950", "color-mix(in srgb, var(--primary-700) 90%, black)")
44
 
45
  const prompt_input = document.querySelector("#prompt_input")
46
+ prompt_input.setAttribute("autocomplete", "off")
47
+ prompt_input.setAttribute("autocorrect", "off")
48
+ prompt_input.setAttribute("autocapitalize", "off")
49
+ prompt_input.setAttribute("spellcheck", "false")
50
+
51
  const imageRatioBtns = document.querySelectorAll("#image_ratio_buttons > div label")
52
  const width_selector = document.querySelector("#image_width_selector > label > input")
53
  const hight_selector = document.querySelector("#image_height_selector > label > input")