aydinnyunus / gpt4-captcha-bypass

Captcha Bypass using GPT4-o
717 stars 57 forks source link

Issue with puzzle option #6

Closed hanniedo closed 3 months ago

hanniedo commented 3 months ago

Hello, result = None in line 152 potentially results in the error below.

gpt4-captcha-bypass % python3 main.py puzzle Traceback (most recent call last): File "/path-to-file/gpt4-captcha-bypass/main.py", line 295, in main() File "/path-to-file/gpt4-captcha-bypass/main.py", line 284, in main puzzle_test(driver) File "/path-to-file/gpt4-captcha-bypass/main.py", line 153, in puzzle_test if result < 110: ^^^^^^^^^^^^ TypeError: '<' not supported between instances of 'NoneType' and 'int'

hanniedo commented 3 months ago

I tried to create a PR to fix this but didn't have permission. So small fix for line 152 would be: result = 0

aydinnyunus commented 3 months ago

Hi,

Yes you are right but if the response is not integer it is maybe because GPT-4o response is changing over time. But I will update it to 0 it make more sense. Thank you for your support