Adam Jirkovsky commited on
Commit
a825d33
·
1 Parent(s): bfaac77

Edit captcha refresh

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -168,7 +168,7 @@ def generate_captcha(width=200, height=150, length=4):
168
  def validate_captcha(input, text, img):
169
  if input == text:
170
  return True, styled_message("Correct!"), text, img
171
- img, text.value = generate_captcha()
172
  return False, styled_error("Incorrect! Please retry with the new code."), text, img
173
 
174
 
 
168
  def validate_captcha(input, text, img):
169
  if input == text:
170
  return True, styled_message("Correct!"), text, img
171
+ img, text = generate_captcha()
172
  return False, styled_error("Incorrect! Please retry with the new code."), text, img
173
 
174