Spaces:
Runtime error
Runtime error
Shivam29rathore
commited on
Commit
·
fbefd1f
1
Parent(s):
9000aa6
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def make_summary(word):
|
|
69 |
# Apply get_sentence_embeddings to dataframe to create column Embeddings
|
70 |
data['Embeddings'] = get_sentence_embeddings()
|
71 |
|
72 |
-
#Number of expected sentences
|
73 |
-
if len(tokens) <=
|
74 |
NUM_CLUSTERS = 1
|
75 |
else:
|
76 |
NUM_CLUSTERS = len(tokens)//4
|
|
|
69 |
# Apply get_sentence_embeddings to dataframe to create column Embeddings
|
70 |
data['Embeddings'] = get_sentence_embeddings()
|
71 |
|
72 |
+
#Number of expected sentences for shorter summaries
|
73 |
+
if len(tokens) <= 4:
|
74 |
NUM_CLUSTERS = 1
|
75 |
else:
|
76 |
NUM_CLUSTERS = len(tokens)//4
|