langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
92.17k stars 14.7k forks source link

YouTube.py #1483

Closed seanbetts closed 11 months ago

seanbetts commented 1 year ago

Can we update the language used in inti in the YouTube.py script to be "en-US" as most transcripts on YouTube are in US English.

e.g.

`def init( self, video_id: str, add_video_info: bool = False, language: str = "eniUS" ): """Initialize with YouTube video ID.""" self.video_id = video_id self.add_video_info = add_video_info self.language = language

shawnesquivel commented 1 year ago

Bump, I always get errors for this.

dosubot[bot] commented 1 year ago

Hi, @seanbetts. I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you requested an update to the language used in the __init__ function of the YouTube.py script to "en-US" because most YouTube transcripts are in US English. There was a comment from shawnesquivel mentioning that they always get errors for this.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the LangChain project.