Adam Jirkovsky commited on
Commit
b196172
·
1 Parent(s): 92d32a1

Captcha fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -356,7 +356,7 @@ with demo:
356
  check_button = gr.Button("Validate", interactive=True)
357
  captcha_result = gr.Markdown()
358
  check_button.click(
359
- fn = lambda: gr.alert("Correct!" if captcha_input.value == text else "Incorrect!"),
360
  inputs = [captcha_input, text],
361
  outputs = [captcha_correct, captcha_result],
362
  )
 
356
  check_button = gr.Button("Validate", interactive=True)
357
  captcha_result = gr.Markdown()
358
  check_button.click(
359
+ fn = validate_captcha,
360
  inputs = [captcha_input, text],
361
  outputs = [captcha_correct, captcha_result],
362
  )