12 lines
438 B
Python
12 lines
438 B
Python
|
|
import json
|
||
|
|
from hermes_tools import browser_navigate, browser_vision
|
||
|
|
|
||
|
|
def bypass_captcha():
|
||
|
|
analysis = browser_vision(
|
||
|
|
question="Solve the CAPTCHA on the current page. Provide the solution text or coordinate clicks required. Provide a PASS/FAIL."
|
||
|
|
)
|
||
|
|
return {"status": "PASS" if "PASS" in analysis.upper() else "FAIL", "solution": analysis}
|
||
|
|
|
||
|
|
if __name__ == '__main__':
|
||
|
|
print(json.dumps(bypass_captcha(), indent=2))
|