Skip to content
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

Add a feature to /education that lets people add educational videos from YouTube just from a link #3769

Open
DonnieBLT opened this issue Mar 2, 2025 · 9 comments · May be fixed by #3794
Open
Labels

Comments

@DonnieBLT
Copy link
Collaborator

We then use AI to check the transcript and label the video appropriately we can also add a ai generated mini quiz after they watch it

@igennova
Copy link
Contributor

igennova commented Mar 2, 2025

/assign

Copy link
Contributor

github-actions bot commented Mar 2, 2025

You cannot be assigned to this issue because you are already assigned to the following issues without an open pull request: #3730. Please submit a pull request for these issues before getting assigned to a new one.

@deepan190703
Copy link

/assign

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Hello @deepan190703! You've been assigned to OWASP-BLT/BLT issue #3769. You have 24 hours to complete a pull request.

deepan190703 added a commit to deepan190703/BLT that referenced this issue Mar 2, 2025
Fixes OWASP-BLT#3769

Add AI-generated transcript and quiz feature for educational videos on `/education`.

* **Models**:
  - Add `transcript` and `quiz` fields to `Lecture` model in `website/models.py`.
  - Add `generate_transcript_and_quiz` method to `Lecture` model for AI integration.

* **Views**:
  - Update `add_lecture` and `edit_lecture` views in `website/views/education.py` to call `generate_transcript_and_quiz` method for video lectures.

* **Templates**:
  - Add fields for displaying AI-generated transcript and quiz in `website/templates/education/includes/add_lecture_modal.html`.
  - Add JavaScript to handle AI transcript and quiz generation in `website/templates/education/includes/add_lecture_modal.html`.

* **Serializers**:
  - Update `LectureSerializer` in `website/serializers.py` to include `transcript` and `quiz` fields.
@DonnieBLT
Copy link
Collaborator Author

we would not use the API unless specified. We have code for the openai integration you can use for the transctiption parsing - we don't want to save the transcript, just use it to generate the quiz and verify it is an educational video

deepan190703 added a commit to deepan190703/BLT that referenced this issue Mar 2, 2025
Add methods to handle AI-generated quizzes and educational video verification

* **website/models.py**: Add `generate_quiz` and `verify_educational_video` methods to `Lecture` model.
* **website/views/education.py**: Update `add_lecture` and `edit_lecture` views to call `generate_quiz` and `verify_educational_video` methods. Add `parse_transcript` function to handle transcript parsing using OpenAI integration.
* **website/serializers.py**: Remove `transcript` field from `LectureSerializer`.
deepan190703 added a commit to deepan190703/BLT that referenced this issue Mar 3, 2025
Fixes OWASP-BLT#3769

Add feature to allow users to add educational YouTube videos with AI-generated quizzes.

* Add `YouTubeVideoForm` in `website/forms.py` to handle YouTube link input and description.
* Add `add_youtube_video` view function in `website/views/education.py` to handle form submission, validate YouTube link, process video transcript using OpenAI, generate quiz, and save lecture.
* Update `website/templates/education/education.html` to include a form for inputting YouTube video link and description.
* Add new modal for adding YouTube videos in `website/templates/education/includes/add_lecture_modal.html` with fields for YouTube link and description.
@github-actions github-actions bot removed the assigned label Mar 3, 2025
Copy link
Contributor

github-actions bot commented Mar 3, 2025

⏰ This issue has been automatically unassigned due to 24 hours of inactivity. The issue is now available for anyone to work on again.

@Aditya-Prakash14
Copy link

/assign

Copy link
Contributor

github-actions bot commented Mar 4, 2025

Hello @Aditya-Prakash14! You've been assigned to OWASP-BLT/BLT issue #3769. You have 24 hours to complete a pull request.

Copy link
Contributor

github-actions bot commented Mar 5, 2025

⏰ This issue has been automatically unassigned due to 24 hours of inactivity. The issue is now available for anyone to work on again.

@github-actions github-actions bot removed the assigned label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
4 participants