You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: