Spaces:
Sleeping
Sleeping
Chananchida
commited on
Commit
•
14ce495
1
Parent(s):
ea7dff2
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def predict_test(embedding_model, context, question, index): # sent_tokenize py
|
|
92 |
for i in range(3): # Loop through top 3 indices
|
93 |
most_sim_context = context[indices[0][i]].strip()
|
94 |
# most_similar_contexts.append(most_sim_context)
|
95 |
-
most_similar_contexts += str(i)+': '+most_sim_context + "\n\n"
|
96 |
print(most_similar_contexts)
|
97 |
return most_similar_contexts
|
98 |
|
|
|
92 |
for i in range(3): # Loop through top 3 indices
|
93 |
most_sim_context = context[indices[0][i]].strip()
|
94 |
# most_similar_contexts.append(most_sim_context)
|
95 |
+
most_similar_contexts += 'Top '+str(i+1)+': '+most_sim_context + "\n\n"
|
96 |
print(most_similar_contexts)
|
97 |
return most_similar_contexts
|
98 |
|