Spaces:
Runtime error
Runtime error
Commit
·
af1e47a
1
Parent(s):
4a5886f
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from blurr.data.all import *
|
|
7 |
from blurr.modeling.all import *
|
8 |
import spacy
|
9 |
from spacy_readability import Readability
|
10 |
-
|
11 |
|
12 |
readablility_nlp = spacy.load('en_core_web_sm')
|
13 |
read = Readability()
|
@@ -59,7 +59,7 @@ def generate_text_summarization(sum_type,article):
|
|
59 |
"score" : summary_score
|
60 |
}
|
61 |
|
62 |
-
|
63 |
return summary
|
64 |
else:
|
65 |
raise gr.Error("Please enter text in inputbox!!!!")
|
|
|
7 |
from blurr.modeling.all import *
|
8 |
import spacy
|
9 |
from spacy_readability import Readability
|
10 |
+
from save_data import save_data_and_sendmail
|
11 |
|
12 |
readablility_nlp = spacy.load('en_core_web_sm')
|
13 |
read = Readability()
|
|
|
59 |
"score" : summary_score
|
60 |
}
|
61 |
|
62 |
+
save_data_and_sendmail(article, sum_type, summary)
|
63 |
return summary
|
64 |
else:
|
65 |
raise gr.Error("Please enter text in inputbox!!!!")
|