Views
No views yet
pyautogui.click(x, y) commands1from transformers import AutoModelForVision2Seq, AutoProcessor
2from PIL import Image
3import torch
4
5# Load model and processor
6model = AutoModelForVision2Seq.from_pretrained(
7 "Asanshay/qwen3-vl-8b-websight-merged",
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True
11)
12processor = AutoProcessor.from_pretrained(
13 "Asanshay/qwen3-vl-8b-websight-merged",
14 trust_remote_code=True
15)
16
17# Prepare input
18image = Image.open("screenshot.png")
19prompt = "click the login button"
20
21inputs = processor(
22 text=f"<image>\n{prompt}",
23 images=image,
24 return_tensors="pt"
25).to(model.device)
26
27# Generate
28with torch.no_grad():
29 outputs = model.generate(**inputs, max_new_tokens=50)
30
31result = processor.decode(outputs[0], skip_special_tokens=True)
32print(result) # Output: pyautogui.click(x, y)pyautogui.click(x, y)pyautogui.click(565, 486)1x_actual = int(x_norm * (screen_width / 1400))
2y_actual = int(y_norm * (screen_height / 800))1@misc{qwen3-vl-websight,
2 title={Qwen3-VL Fine-tuned for GUI Automation},
3 author={Your Name},
4 year={2025},
5 publisher={HuggingFace},
6 howpublished={\url{https://huggingface.co/Asanshay/qwen3-vl-8b-websight-merged}}
7}