fschwartzer commited on
Commit
f3ff845
1 Parent(s): 6baa204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def calcular_fator_avaliacao(titulo, EC, PU):
58
  fator_avaliacao = max((4 * ec_pontuacao + 6 * PVU - 3 * PUB) / 100, VR)
59
  return fator_avaliacao
60
 
61
- def select_nearest_items_adjusted(df, query):
62
  # Lower the title similarity threshold if necessary
63
  df['Title_Similarity'] = df['Title'].apply(lambda x: fuzz.WRatio(query, x))
64
  df_filtered = df[df['Title_Similarity'] > 50] # Adjusted threshold
 
58
  fator_avaliacao = max((4 * ec_pontuacao + 6 * PVU - 3 * PUB) / 100, VR)
59
  return fator_avaliacao
60
 
61
+ def select_nearest_items(df, query):
62
  # Lower the title similarity threshold if necessary
63
  df['Title_Similarity'] = df['Title'].apply(lambda x: fuzz.WRatio(query, x))
64
  df_filtered = df[df['Title_Similarity'] > 50] # Adjusted threshold