Spaces:
Sleeping
Sleeping
Commit ·
0b7768d
1
Parent(s): 4ac0b83
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ examples = [
|
|
| 35 |
def main(sentence: str, score_type: str, threshold_cosine: float, threshold_jaccard: float = 0.1):
|
| 36 |
threshold = threshold_cosine if score_type == "cosine" else threshold_jaccard
|
| 37 |
# results = search_offers(sentence, df_offers_brand_retailer, category_dict, brand_belong_category_dict, score_type, threshold)
|
| 38 |
-
results =
|
| 39 |
message, processed_results = process_output(results)
|
| 40 |
return message, processed_results
|
| 41 |
|
|
|
|
| 35 |
def main(sentence: str, score_type: str, threshold_cosine: float, threshold_jaccard: float = 0.1):
|
| 36 |
threshold = threshold_cosine if score_type == "cosine" else threshold_jaccard
|
| 37 |
# results = search_offers(sentence, df_offers_brand_retailer, category_dict, brand_belong_category_dict, score_type, threshold)
|
| 38 |
+
results = None
|
| 39 |
message, processed_results = process_output(results)
|
| 40 |
return message, processed_results
|
| 41 |
|