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

Form view to summarize #56

Open
svp19 opened this issue Jul 17, 2019 · 2 comments
Open

Form view to summarize #56

svp19 opened this issue Jul 17, 2019 · 2 comments
Labels
good first issue Good for newcomers SoI19

Comments

@svp19
Copy link
Member

svp19 commented Jul 17, 2019

Create a SummarizeLectureForm in admin/forms.py that takes a lecture model as its Meta class.

  • See CreateLectureForm for reference.

The form should use the summarize(text) in summarization.py to store the summary of the LectureModel.live_transcript in LectureModel.summary

@svp19 svp19 added good first issue Good for newcomers SoI19 labels Jul 17, 2019
@bvishal8510
Copy link
Contributor

@svp19 there is no need to create a separate SummarizeLectureForm. CreateLectureForm will work. We just need to add the live_transcript field to form and while submitting it in the view call the summarize(text). Thus, we can save the complete lecture in one go.

@svp19
Copy link
Member Author

svp19 commented Jul 25, 2019

@bvishal8510 The transcription of the text might take some time. With your approach, we should set it up as a background task. I was hoping the lecture could be created first so that the URL is available for users. Also, ideally the transcript so should update dynamically on the page - hence the name - 'Crispy LIVE'.

When I opened this issue, I was hoping to eventually convert it to an API where an admin can make a POST request to this view and update the transcript after recording is done or when a better version of the recording is reuploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers SoI19
Projects
None yet
Development

No branches or pull requests

2 participants