-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
feat: Add YouTube transcript extraction component and frontend integration #4502
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dosubot
bot
added
size:L
This PR changes 100-499 lines, ignoring generated files.
enhancement
New feature or request
labels
Nov 11, 2024
Cristhianzl
changed the title
feat: Add YouTubeTranscriptsComponent for YouTube Transcript Extraction
feat: Add YouTube transcripts extraction component
Nov 11, 2024
CodSpeed Performance ReportMerging #4502 will degrade performances by 16.86%Comparing Summary
Benchmarks breakdown
|
…nscripts component in the frontend to ensure user can interact with it successfully
Cristhianzl
changed the title
feat: Add YouTube transcripts extraction component
feat: Add YouTube transcript extraction component and frontend integration
Nov 11, 2024
github-actions
bot
added
enhancement
New feature or request
and removed
enhancement
New feature or request
labels
Nov 11, 2024
italojohnny
approved these changes
Nov 11, 2024
- Introduced `YoutubeApiSchema` for structured input validation. - Updated `youtube_transcripts` method to use `TranscriptFormat` enum. - Improved error handling by raising `ToolException` for transcript retrieval failures. - Removed redundant `YoutubeApiSchema` class definition within `YouTubeTranscriptsComponent`.
…roper execution of drag and drop action in the test 🔧 (youtube-transcripts.spec.ts): introduce a loop to handle multiple instances of outdated components before proceeding with the test execution
diogocabral
pushed a commit
to headlinevc/langflow
that referenced
this pull request
Nov 26, 2024
…ation (langflow-ai#4502) * add new youtube transcripts component * [autofix.ci] apply automated fixes * ✨ (youtube-transcripts.spec.ts): add integration test for youtube transcripts component in the frontend to ensure user can interact with it successfully * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
size:L
This PR changes 100-499 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a new component for extracting transcripts from YouTube videos and integrates it into the frontend. The most important changes include the addition of the
YouTubeTranscriptsComponent
, updates to the frontend to support the new component, and a new test to verify its functionality.Backend Changes:
YouTubeTranscriptsComponent
to import list and component registry in__init__.py
(src/backend/base/langflow/components/tools/__init__.py
) [1] [2].YouTubeTranscriptsComponent
class to handle YouTube transcript extraction, including methods for building transcripts and creating a structured tool (src/backend/base/langflow/components/tools/youtube_transcripts.py
).Frontend Changes:
YouTubeSvgIcon
component to render the YouTube icon (src/frontend/src/icons/Youtube/index.tsx
).YouTubeIcon
and added it to thenodeIconsLucide
export instyleUtils.ts
(src/frontend/src/utils/styleUtils.ts
) [1] [2].Testing:
src/frontend/tests/extended/integrations/youtube-transcripts.spec.ts
).This pull request includes the addition of a new component to extract YouTube transcripts and various test cleanups. The most important changes include adding theYouTubeTranscriptsComponent
, updating the__init__.py
file to include this component, and removing redundant imports in several test files.New Feature:
YouTubeTranscriptsComponent
to extract spoken content from YouTube videos as transcripts. (src/backend/base/langflow/components/tools/youtube_transcripts.py
)Initialization Updates:
__init__.py
to include the newYouTubeTranscriptsComponent
. (src/backend/base/langflow/components/tools/__init__.py
) [1] [2]