zhou12189108 commited on
Commit
5580fd8
1 Parent(s): e014353

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -0
api.py CHANGED
@@ -81,6 +81,7 @@ def solver_captcha():
81
  if not check_request(require_data, data):
82
  return jsonify(msg="Unauthorized Request"), 403
83
  dir_path=generate_uuid()
 
84
  resp=asyncio.run(hcaptcha_solver.bytedance(data["host"], data["site_key"], dir_path))
85
  if os.path.exists(dir_path):
86
  shutil.rmtree(dir_path)
 
81
  if not check_request(require_data, data):
82
  return jsonify(msg="Unauthorized Request"), 403
83
  dir_path=generate_uuid()
84
+ hcaptcha_solver.solver.install(upgrade=True)
85
  resp=asyncio.run(hcaptcha_solver.bytedance(data["host"], data["site_key"], dir_path))
86
  if os.path.exists(dir_path):
87
  shutil.rmtree(dir_path)