Spaces:
Sleeping
Sleeping
Commit ·
7036f8f
1
Parent(s): a93db09
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,11 +32,14 @@ examples = [
|
|
| 32 |
["A giraffe at Lincoln Park Zoo"]
|
| 33 |
]
|
| 34 |
|
| 35 |
-
def main(sentence: str, score_type: str, threshold_cosine: float, threshold_jaccard: float = 0.1):
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
def process_output(output):
|
| 42 |
"""Function to process the output"""
|
|
|
|
| 32 |
["A giraffe at Lincoln Park Zoo"]
|
| 33 |
]
|
| 34 |
|
| 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 |
+
# message, processed_results = process_output(results)
|
| 39 |
+
# return message, processed_results
|
| 40 |
+
|
| 41 |
+
def main()
|
| 42 |
+
return "Just a test", None
|
| 43 |
|
| 44 |
def process_output(output):
|
| 45 |
"""Function to process the output"""
|