Update app.py
Browse files
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
|