-
Notifications
You must be signed in to change notification settings - Fork 847
报错Network Error: Request Failed #261
Description
PS E:\X-PLUG\PCAgent\MyPcAgent> python run.py --instruction="打开 “此电脑”" --mac 0
2026-03-02 17:30:50,933 - modelscope - INFO - PyTorch version 2.10.0 Found.
2026-03-02 17:30:50,934 - modelscope - INFO - Loading ast index from C:\Users\Administrator.cache\modelscope\ast_indexer
2026-03-02 17:30:51,125 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 c4022a2bbc7c06b7df540266ce6f1e75 and a total number of 980 components indexed
打开 此电脑
task_1/screenshot_1.png
Network Error:
Request Failed
Network Error:
Request Failed
Network Error:
Request Failed
Network Error:
Request Failed
Network Error:
Request Failed
Traceback (most recent call last):
File "E:\X-PLUG\PCAgent\MyPcAgent\run.py", line 661, in
output_action = inference_chat(chat_action, vl_model_version, API_url, token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\X-PLUG\PCAgent\MyPcAgent\PCAgent\api.py", line 62, in inference_chat
print("completion"+completion)
^^^^^^^^^^
UnboundLocalError: cannot access local variable 'completion' where it is not associated with a value
纯小白,跪求作者大大回复