abdulmatinomotoso commited on
Commit
664d61b
1 Parent(s): 023b5fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,6 @@ import nltk
4
  import torch
5
  from nltk.tokenize import sent_tokenize
6
  nltk.download('punkt')
7
- from IPython.display import HTML, display
8
  import gradio as gr
9
  from gradio.mix import Parallel
10
  from transformers import pipeline
@@ -25,6 +24,7 @@ tokenizer = BartTokenizer.from_pretrained("facebook/bart-large-cnn")
25
 
26
  #Defining a function to get the summary of the article
27
  def final_summary(file):
 
28
  #reading in the text and tokenizing it into sentence
29
  text = read_in_text(file.name)
30
  chunks = sent_tokenize(text)
4
  import torch
5
  from nltk.tokenize import sent_tokenize
6
  nltk.download('punkt')
 
7
  import gradio as gr
8
  from gradio.mix import Parallel
9
  from transformers import pipeline
24
 
25
  #Defining a function to get the summary of the article
26
  def final_summary(file):
27
+
28
  #reading in the text and tokenizing it into sentence
29
  text = read_in_text(file.name)
30
  chunks = sent_tokenize(text)