Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
108a43e
1
Parent(s):
07df588
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,9 @@ def get_best_match(query, choices, limit=5):
|
|
39 |
matches = process.extractBests(query, choices, limit=limit)
|
40 |
return [match[0] for match in matches if match[1] > 60] # Adjust score threshold as needed
|
41 |
|
42 |
-
def filtrar_itens_similares(df, termo_pesquisa,
|
43 |
titulos = df['Title'].tolist()
|
44 |
-
titulos_similares = get_best_match(termo_pesquisa, titulos,
|
45 |
df_filtrado = df[df['Title'].isin(titulos_similares)]
|
46 |
return df_filtrado
|
47 |
|
|
|
39 |
matches = process.extractBests(query, choices, limit=limit)
|
40 |
return [match[0] for match in matches if match[1] > 60] # Adjust score threshold as needed
|
41 |
|
42 |
+
def filtrar_itens_similares(df, termo_pesquisa, limit=5):
|
43 |
titulos = df['Title'].tolist()
|
44 |
+
titulos_similares = get_best_match(termo_pesquisa, titulos, limit=limit)
|
45 |
df_filtrado = df[df['Title'].isin(titulos_similares)]
|
46 |
return df_filtrado
|
47 |
|