Spaces:
Sleeping
Sleeping
Vipul-Chauhan
commited on
Commit
•
b5f54c3
1
Parent(s):
32bc879
Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,7 @@ def get_summary_answer(Question):
|
|
156 |
cluster_selected = return_selected_cluster(Question)
|
157 |
|
158 |
temp_df = newsdf_sample[newsdf_sample.exp1==cluster_selected]
|
159 |
-
tfidf_ques = vectorizer.transform([process_row(
|
160 |
cosine_score = []
|
161 |
for sent in temp_df["tfidf_cleaned"].values:
|
162 |
val = vectorizer.transform([sent]).todense()
|
|
|
156 |
cluster_selected = return_selected_cluster(Question)
|
157 |
|
158 |
temp_df = newsdf_sample[newsdf_sample.exp1==cluster_selected]
|
159 |
+
tfidf_ques = vectorizer.transform([process_row(Question)]).todense()
|
160 |
cosine_score = []
|
161 |
for sent in temp_df["tfidf_cleaned"].values:
|
162 |
val = vectorizer.transform([sent]).todense()
|