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

value is not a valid list #128

Closed
rossipang opened this issue Jun 26, 2024 · 2 comments
Closed

value is not a valid list #128

rossipang opened this issue Jun 26, 2024 · 2 comments

Comments

@rossipang
Copy link

rossipang commented Jun 26, 2024

Thought: Do I need to use a tool? Yes
Action: Check the video
Action Input: ['shelf_monitor_videos/780569643503.mp4', 'shelf_monitor_videos/780558303140.mp4']Traceback (most recent call last):

error_message:
video_list
value is not a valid list (type=type_error.list)

tools function code:

def check_video(video_list:list) -> str:
"""
This tool checks the video and returns the result.
Returns:
- result (str): The result of the check.
"""
for video_path in vlist:
_data = {
"query": query,
"video_file":video_path,
}
nvcheck = requests.post(url=url, headers=headers, data=json.dumps(_data)).text
check = nvcheck.split("\n")[-2]
one_res = video_path+ "," +check
res = res+one_res+'\n'
return res

Copy link

github-actions bot commented Sep 4, 2024

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant