-
Notifications
You must be signed in to change notification settings - Fork 3
Get captions from embedded YouTube videos (iss. #5) #7
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
Open
lsloan
wants to merge
17
commits into
umich-its-ai:main
Choose a base branch
from
lsloan:5-YouTube-captions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or 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
Later, this should be replaced with the name of the package in PyPI or URL to the release in our repo.
TL colleagues with Cavas expertise recommend Document objects for YouTube captions should link to the Canvas page on which they were embedded to keep students in the learning context. Maizey project colleagues say linking to YouTube is fine. I'm adding extra metadata here for Canvas to show what the links back to Canvas could look like. They couldn't make the player start at a specific time, but maybe the AI could tell the user the timestamp for the section of video that contains the caption of interest.
@mlhess, I've updated the syllabus support. I have some minor adjustments to make on its metadata. I didn't have enough time to figure out the best support for YouTube links in PDFs, as described by the instructor we wrote to. However, I've added "TODO" comments in the code where support for that and Powerpoint files should be added. |
John Pariseau agreed that this would be a good idea.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves #5.
Search the contents of Canvas Page objects for YouTube videos embedded via
iframe
elements.Test Plan
Preparation
langchain-doc-canvas_testplan
andcd
into it…git clone -b 5-YouTube-captions https://github.com/lsloan/langchain-doc-canvas.git langchain-doc-canvas_testplan cd langchain-doc-canvas_testplan
python3.11 -m venv .venv-testplan source .venv-testplan/bin/activate
itsaistu
or follow these steps to create a new token.Run Example Program
Set environment variables with the Canvas API URL, API token, and course ID…
Testing configuration available in Dropbox:
https://www.dropbox.com/scl/fi/mzcf6ccqugvr1n5yi84ha/.env.txt?rlkey=6qx7352jvx50ktbhbioarjms2&st=o79puh7x&dl=0
Run the program
canvas-test.py
to get captions from some existing YouTube videos…