pritamdeka
commited on
Commit
β’
bd35a11
1
Parent(s):
568c379
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def keyphrase_generator(article_link, model_1, model_2, max_num_keywords):
|
|
79 |
|
80 |
for elem in sentences:
|
81 |
element.append(elem[0])
|
82 |
-
for sc, lst in zip(score_list, element):
|
83 |
sum1=sc+lst
|
84 |
sum_list.append(sum1)
|
85 |
x=sorted(((sum_list[i],s) for i,s in enumerate(corpus)), reverse=True)
|
|
|
79 |
|
80 |
for elem in sentences:
|
81 |
element.append(elem[0])
|
82 |
+
for sc, lst in zip(score_list, element): ########### taking the scores from both the lists
|
83 |
sum1=sc+lst
|
84 |
sum_list.append(sum1)
|
85 |
x=sorted(((sum_list[i],s) for i,s in enumerate(corpus)), reverse=True)
|