-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Q&A] How to use nested categories #835
Comments
upgrade to latest version v0.8.7 ++ pip install -U hcaptcha-challenger[playwright] and |
I tried version 0.8.7, 0.8.7-post1 and |
How do you use it 0.0 |
fine, I didn't export this feat as an example. If you do not use it in the context of AgentT, you cannot activate trigger this feature. 'nested categories' needs to provide an' example image 'and a' challenge prompt 'to filter and sort models, and then select the best model to do the second processing of' challenge images'. hcaptcha-challenger/hcaptcha_challenger/agents/playwright/control.py Lines 378 to 400 in 54a0001
hcaptcha-challenger/hcaptcha_challenger/agents/playwright/control.py Lines 649 to 658 in 54a0001
|
So what would I have to change in demo_classify.py to make it work? I'm too stupid to understand how it works exactly. I would be very grateful for your help. |
Im currently using demo_classify.py: ` import hcaptcha_challenger as solver solver.install(upgrade=True) prompt = "diamond bracelet" label_dir = Path(file).parent.joinpath("diamond_bracelet") images = [label_dir.joinpath(fn).read_bytes() for fn in os.listdir(label_dir)] def bytedance(): if name == "main": But if nested categories dont work on this code i can switch to anything but without selenium and as always i will be very grateful for help |
I mean, how did you import hcaptcha_challenger and use it in your project. It's impossible to just run this example, right?😅 Since you'll be thinking about handling |
Im using hcaptcha challenger literally same as demo_classify code here: import os, json
from pathlib import Path
import time
import hcaptcha_challenger as solver
solver.install(flush_yolo=True, upgrade=True)
def solvecapclas(prompt: str, path: str):
cap_prompt = prompt
label_dir = Path(__file__).parent.joinpath("solverdata", "classify", path)
images = [label_dir.joinpath(fn).read_bytes() for fn in os.listdir(label_dir)]
classifier = solver.BinaryClassifier()
if result := classifier.execute(cap_prompt, images):
answers1 = {
name[:-5]: result[i]
for i, name in enumerate(os.listdir(label_dir))
}
return json.dumps(answers1) Im getting all the images from request. I want to notice that from that from that same request i can get example_question soo it would be possible to specify a .onyx model without selenium but im not too smart to do this |
emmmm...... This looks like it's just a change to the example code. |
its literally 1:1 thats why im asking if its possible that you could help me or do a new example i was thinking about separate .onyx model that will match example images |
Your requirement is too simple, I changed some of the code of classifier, you only need to pass one more parameter. see more: https://github.com/QIN2DIM/hcaptcha-challenger/blob/main/examples/demo_rank_largest_animal.py |
Brief description
Hi! i have problem while running nested prompt: "Please click on the largest animal." I can see they have .onyx models and they are in objects.yaml but i dont now how to run it propertly.I use demo_classify.py from examples. I would be grateful for any help.
Error
The text was updated successfully, but these errors were encountered: