oss2019 / crispy-ai

An intelligent bot that listens and summarises lectures to deliver content that is crisp and to-the-point
MIT License
7 stars 14 forks source link

Form view to summarize #56

Open svp19 opened 5 years ago

svp19 commented 5 years ago

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

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

bvishal8510 commented 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.

svp19 commented 5 years ago

@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.