Open svp19 opened 5 years ago
@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.
@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.
Create a SummarizeLectureForm in
admin/forms.py
that takes a lecture model as its Meta class.The form should use the
summarize(text)
insummarization.py
to store the summary of the LectureModel.live_transcript in LectureModel.summary