Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
2755612
1
Parent(s):
4a367ba
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def refinar_resultados(df, exclude_word="conjunto", include_word=False):
|
|
37 |
def get_best_match(query, choices, limit=15):
|
38 |
# Using RapidFuzz for improved performance and fuzzy matching
|
39 |
matches = process.extract(query, choices, scorer=fuzz.WRatio, limit=limit)
|
40 |
-
return [match[0] for match in matches if match[1] >
|
41 |
|
42 |
def filtrar_itens_similares(df, termo_pesquisa, limit=15):
|
43 |
titulos = df['Title'].tolist()
|
|
|
37 |
def get_best_match(query, choices, limit=15):
|
38 |
# Using RapidFuzz for improved performance and fuzzy matching
|
39 |
matches = process.extract(query, choices, scorer=fuzz.WRatio, limit=limit)
|
40 |
+
return [match[0] for match in matches if match[1] > 50]
|
41 |
|
42 |
def filtrar_itens_similares(df, termo_pesquisa, limit=15):
|
43 |
titulos = df['Title'].tolist()
|