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
the resulting verbose
Entering new CrewAgentExecutor chain...
I need to retrieve all comments for the specified YouTube video ID "sNa\_uiqSlJo" using the YouTube Comments Fetcher tool.
Action: YouTube Comments Fetcher
Action Input: {"video\_id": "sNa\_uiqSlJo"}<unknown>:1: SyntaxWarning: invalid escape sequence '\_'
<unknown>:1: SyntaxWarning: invalid escape sequence '\_'
modified the main.py with video_id = str (video_id) but still does not work
def run():
inURL = input("馃殌 Enter YouTube URL: ")
video_id = extract_video_id(inURL)
# video_id = extract_video_id(input("馃殌 Enter YouTube URL: "))
if not video_id:
print("馃毃 Invalid YouTube URL provided.")
return
# need to pass the video_id with _ without the escape ie sNa_uiqSlJo instead of sNa\_uiqSlJo
# video_id = str (video_id)
## does not work
inputs = {"video_id": video_id, "url": inURL}
crew = YoutubeCommentsCrew()
result = crew.crew().kickoff(inputs=inputs)
print("Analysis Result:")
print(result) #.encode("utf-8"))
fixes the issue of "sNa_uiqSlJo"
Entering new CrewAgentExecutor chain...
I need to retrieve all comments for the specified YouTube video ID "sNa_uiqSlJo" using the YouTube Comments Fetcher tool.
Action: YouTube Comments Fetcher
Action Input: {"video_id": "sNa_uiqSlJo"}
I am a newbie into AI, so dont know if this is bug or feature..
The text was updated successfully, but these errors were encountered:
That's an old issue. (Dumb) LLMs seem to always think you have to escape underscores. Same if a tool is for example called "web_search". You can get around this by just writing python code that deletes all "" in the video_id. Then it doesn't matter if the model is dumb.
main.py
when the url passed is https://www.youtube.com/watch?v=sNa_uiqSlJo therefore video_id is sNa_uiqSlJo
modified the main.py with video_id = str (video_id) but still does not work
fixes the issue of "sNa_uiqSlJo"
I am a newbie into AI, so dont know if this is bug or feature..
The text was updated successfully, but these errors were encountered: