Closed zhiyuan8 closed 4 months ago
Thank you for your contribution.
Thanks, when I run you code, I find those code could return index out of range
error since split is risky and GPT4 has hallucination
https://github.com/X-PLUG/MobileAgent/blob/main/run.py#L69-L71 https://github.com/X-PLUG/MobileAgent/blob/main/run.py#L85 ...
Maybe you could consider using regex? https://github.com/mnotgod96/AppAgent/blob/main/scripts/model.py#L101-L138
Thanks, when I run you code, I find those code could return
index out of range
error since split is risky and GPT4 has hallucinationhttps://github.com/X-PLUG/MobileAgent/blob/main/run.py#L69-L71 https://github.com/X-PLUG/MobileAgent/blob/main/run.py#L85 ...
Maybe you could consider using regex? https://github.com/mnotgod96/AppAgent/blob/main/scripts/model.py#L101-L138
When the error "index out of range" occurs, it indicates that GPT-4V has not generated a reply in the required format. In such cases, attempting again with a try command often resolves the issue. We agree that using split is risky. We will refer to the code you provided for modifications. Thank you.
Hi team,
this is excellent work, but I find some risky codes which breaks code execution
Here, the image is RGBA format, need to add https://github.com/X-PLUG/MobileAgent/blob/main/MobileAgent/crop.py#L83-L84
res is not defined in exception https://github.com/X-PLUG/MobileAgent/blob/main/MobileAgent/api.py#L30-L31 change to
Am I able to contribute to this repo, too? I am a software engineer from Google : https://www.linkedin.com/in/zack-z-li