Adam Jirkovsky commited on
Commit
c9612ab
·
1 Parent(s): 8356f3c

Session-based captcha generation

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -388,6 +388,11 @@ with demo:
388
  show_copy_button=True,
389
  )
390
 
 
 
 
 
 
391
  #scheduler = BackgroundScheduler()
392
  #scheduler.add_job(restart_space, "interval", seconds=3600)
393
  #scheduler.start()
 
388
  show_copy_button=True,
389
  )
390
 
391
+ demo.load(
392
+ fn=generate_captcha,
393
+ outputs=[captcha_img, text]
394
+ )
395
+
396
  #scheduler = BackgroundScheduler()
397
  #scheduler.add_job(restart_space, "interval", seconds=3600)
398
  #scheduler.start()