Skip to content

Commit

Permalink
Minor tweaks fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Swastik Sharma <[email protected]>
  • Loading branch information
swastkk committed May 27, 2023
1 parent 142de42 commit 8a49197
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions bookbuddy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ def bookbuddy(request):
print(len(request.FILES))
file = request.FILES['file']
val, text = getText(file, "")
print("summary")
print("The summary generation hs started...")
parser = PlaintextParser(text, Tokenizer('english'))
summarizer_1 = LuhnSummarizer()
summary_1 = summarizer_1(parser.document, 10)
output = ""
print('thhis')
for sentence in summary_1:
output += str(sentence)
print('thhis is')
file = text_to_audio(output)
ctx = {
'file': file,
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion youtubeplus/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def youtubeplus(request):
print(url)
audio, text = urlToText(url)
summary = ""
print(" summary is bein calculated")
print(" Summary is being calculated")
parser = PlaintextParser(text, Tokenizer('english'))
summarizer_1 = LuhnSummarizer()
summary_1 = summarizer_1(parser.document, lines)
Expand Down

0 comments on commit 8a49197

Please sign in to comment.