Vadim212 commited on
Commit
4b4d8aa
1 Parent(s): 37482f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -80,6 +80,8 @@ def find(question):
80
  samples_df = pd.DataFrame.from_dict(samples)
81
  samples_df["scores"] = scores
82
  samples_df.sort_values("scores", ascending=True, inplace=True)
 
 
83
 
84
  result = [get_html(row) for i, row in samples_df.iterrows()]
85
  return result
 
80
  samples_df = pd.DataFrame.from_dict(samples)
81
  samples_df["scores"] = scores
82
  samples_df.sort_values("scores", ascending=True, inplace=True)
83
+ samples_df.drop_duplicates(subset=["url"], inplace=True)
84
+ samples_df = samples_df[:10]
85
 
86
  result = [get_html(row) for i, row in samples_df.iterrows()]
87
  return result