Spaces:
Build error
Build error
Update resultados_consulta.py
Browse files- resultados_consulta.py +3 -0
resultados_consulta.py
CHANGED
@@ -63,6 +63,9 @@ def retrieve_index(data,cosine_scores, document_index, topn=10):
|
|
63 |
df_top_scores=data.reset_index().sort_values('scores',ascending=False).head(topn)
|
64 |
df_top_scores=df_top_scores[df_top_scores['scores'] > 0]
|
65 |
st.write(df_top_scores)
|
|
|
|
|
|
|
66 |
return df_top_scores.index # Dataframe original con los scores
|
67 |
# del coseno en una columna nueva
|
68 |
|
|
|
63 |
df_top_scores=data.reset_index().sort_values('scores',ascending=False).head(topn)
|
64 |
df_top_scores=df_top_scores[df_top_scores['scores'] > 0]
|
65 |
st.write(df_top_scores)
|
66 |
+
|
67 |
+
min=np.average(df_top_scores['scores'])+0.75*np.std(df_top_scores['scores'])
|
68 |
+
|
69 |
return df_top_scores.index # Dataframe original con los scores
|
70 |
# del coseno en una columna nueva
|
71 |
|