Spaces:
Runtime error
Runtime error
OmarElSayed
commited on
Commit
•
a78bbad
1
Parent(s):
b7a9568
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_similar_sentences(text):
|
|
35 |
for i, doc in enumerate(all_docs):
|
36 |
similarity_score = ref_sentence.similarity(doc)
|
37 |
similar_sentences.append({
|
38 |
-
"similar_sentence":
|
39 |
"similarity_score": similarity_score,
|
40 |
})
|
41 |
similar_sentences.sort(key=lambda x: x['similarity_score'], reverse=True)
|
|
|
35 |
for i, doc in enumerate(all_docs):
|
36 |
similarity_score = ref_sentence.similarity(doc)
|
37 |
similar_sentences.append({
|
38 |
+
"similar_sentence": dataset['reference'][i]+str(doc),
|
39 |
"similarity_score": similarity_score,
|
40 |
})
|
41 |
similar_sentences.sort(key=lambda x: x['similarity_score'], reverse=True)
|