Skip to content
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

ERROR: an exception occurs while parsing the model response: list index out of range #70

Open
daimaxiansheng opened this issue Apr 18, 2024 · 8 comments

Comments

@daimaxiansheng
Copy link

Warning! No module named 'sounddevice'
Warning! No module named 'matplotlib'
Warning! No module named 'keras'
Welcome to the deployment phase of AppAgent!
Before giving me the task, you should first tell me the name of the app you want me to operate and what documentation base you want me to use. I will try my best to complete the task without your intervention. First, please enter the main interface of the app on your phone and provide the following information.

What is the name of the target app?

华为商城
Warning! No module named 'sounddevice'
Warning! No module named 'matplotlib'
Warning! No module named 'keras'
Documentations generated from human demonstration were found for the app 华为商城. The doc base is selected automatically.

List of devices attached:
['SED0221831016908']

Device selected: SED0221831016908

Screen resolution of SED0221831016908: 1228x2700

Please enter the description of the task you want me to complete in a few sentences:

打开华为商城搜索手表watch4pro加入购物车然后从购物车删除并且关闭华为商城
Round 1

Documentations retrieved for the current interface:
Documentation of UI element labeled with the numeric tag '14':
This UI element is clickable. The UI element is a button that navigates to the Huawei online store.

Thinking about what to do in the next step...

ERROR: an exception occurs while parsing the model response: list index out of range

Observation:

Task finished unexpectedly

手动模式完成后执行run.py根据要求输入后直接报错了,数组越界,这个该如何解决?

@vikingden8
Copy link

same issue too

@daimaxiansheng
Copy link
Author

"choices":[
{
"finish_reason":"stop",
"message":{
"role":"assistant",
"content":[
{
"text":"Observation:"
}
]
}
}
]
查了下大模型并没有按照要求返回,仅仅返回了一个Observation,目前来看估计得修改prompt了

@jaypatelp001
Copy link

try to install python pacakages that it indicates, i am also facing same issues after installing libraries manually it works fine.

@vikingden8
Copy link

all the python packages by manual?@

try to install python pacakages that it indicates, i am also facing same issues after installing libraries manually it works fine.

@Harold-QIU
Copy link

Hi, there. This can be solved by simply modify QWEN_MODEL to qwen-vl-plus in config.yaml if you are using Qwen model.
The original QWEN_MODEL is qwen-vl-max and I found that qwen-vl-plus is more capable in the context of AppAgent.

@daimaxiansheng
Copy link
Author

daimaxiansheng commented Apr 22, 2024

@Harold-QIU Thank you, it has been confirmed that

Hi, there. This can be solved by simply modify QWEN_MODEL to qwen-vl-plus in config.yaml if you are using Qwen model. The original QWEN_MODEL is qwen-vl-max and I found that qwen-vl-plus is more capable in the context of AppAgent.

@CookSleep
Copy link

Hi, there. This can be solved by simply modify QWEN_MODEL to qwen-vl-plus in config.yaml if you are using Qwen model.您好。如果您使用的是 Qwen 模型,只需在 config.yaml 中将 QWEN_MODEL 修改为 qwen-vl-plus 即可解决这个问题。 The original QWEN_MODEL is qwen-vl-max and I found that qwen-vl-plus is more capable in the context of AppAgent.最初的 QWEN_MODELqwen-vl-max ,我发现 qwen-vl-plus 在 AppAgent 中的功能更强。

However, the official description of qwen-vl-max is "Qwen Super Large Scale Visual Language Model. Compared to the plus version, it further enhances visual reasoning capabilities and command compliance abilities, providing higher levels of visual perception and cognition. It offers optimal performance on more complex tasks." ...I can't understand...

@zhenchuanpeng
Copy link

The same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants