saritha5 commited on
Commit
1af8a4a
1 Parent(s): 8f1bc12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ from heapq import nlargest
2
  import spacy
3
  from spacy.lang.en.stop_words import STOP_WORDS
4
  from string import punctuation
 
5
 
6
 
7
 
@@ -40,7 +41,7 @@ def prediction(text):
40
  select_length = int(len(sentence_tokens)*0.3)
41
  summary = nlargest(select_length, sentence_scores, key = sentence_scores.get)
42
  return summary
43
-
44
  text = """
45
  Maria Sharapova has basically no friends as tennis players on the WTA Tour. The Russian player has no problems in openly speaking about it and in a recent interview she said: 'I don't really hide any feelings too much.
46
  I think everyone knows this is my job here. When I'm on the courts or when I'm on the court playing, I'm a competitor and I want to beat every single person whether they're in the locker room or across the net.
 
2
  import spacy
3
  from spacy.lang.en.stop_words import STOP_WORDS
4
  from string import punctuation
5
+ import gradio as gr
6
 
7
 
8
 
 
41
  select_length = int(len(sentence_tokens)*0.3)
42
  summary = nlargest(select_length, sentence_scores, key = sentence_scores.get)
43
  return summary
44
+ INPUTS = gr.inputs.
45
  text = """
46
  Maria Sharapova has basically no friends as tennis players on the WTA Tour. The Russian player has no problems in openly speaking about it and in a recent interview she said: 'I don't really hide any feelings too much.
47
  I think everyone knows this is my job here. When I'm on the courts or when I'm on the court playing, I'm a competitor and I want to beat every single person whether they're in the locker room or across the net.