maxiw commited on
Commit
767c22e
1 Parent(s): 4f71621

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -44,7 +44,7 @@ processor = AutoProcessor.from_pretrained("AskUI/PTA-1", trust_remote_code=True)
44
  task_prompt = "<OPEN_VOCABULARY_DETECTION>"
45
  prompt = task_prompt + "description of the target element"
46
 
47
- image = Image.open("path to screenshot")
48
 
49
  inputs = processor(text=prompt, images=image, return_tensors="pt").to(device, torch_dtype)
50
 
 
44
  task_prompt = "<OPEN_VOCABULARY_DETECTION>"
45
  prompt = task_prompt + "description of the target element"
46
 
47
+ image = Image.open("path to screenshot").convert("RGB")
48
 
49
  inputs = processor(text=prompt, images=image, return_tensors="pt").to(device, torch_dtype)
50