Sebastiankay commited on
Commit
8c10452
·
1 Parent(s): 115e300

Sep 10, 2024, 2:38 PM

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -249,8 +249,7 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
249
 
250
  js_check_empty_prompt = """
251
  function js_check_empty_prompt() {
252
- const prompt_textinput = document.querySelector("#prompt_input > label > textarea")
253
- if prompt_textinput.value === "" {
254
  document.querySelector("#random_prompt_btn").click()
255
  }
256
  }
 
249
 
250
  js_check_empty_prompt = """
251
  function js_check_empty_prompt() {
252
+ if document.querySelector("#prompt_input > label > textarea").value === "" {
 
253
  document.querySelector("#random_prompt_btn").click()
254
  }
255
  }