Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def preprocess(sentence: str) -> str:
|
|
30 |
tokens = [word for word in tokens if word not in stop_words]
|
31 |
return ' '.join(tokens)
|
32 |
|
33 |
-
def calculate_fx(sentence: str, candidates: List[str], threshold: float = 0.
|
34 |
"""
|
35 |
Calculates the similarity scores between the input sentence and a list of candidate sentences.
|
36 |
|
|
|
30 |
tokens = [word for word in tokens if word not in stop_words]
|
31 |
return ' '.join(tokens)
|
32 |
|
33 |
+
def calculate_fx(sentence: str, candidates: List[str], threshold: float = 0.10) -> List[Dict[str, Any]]:
|
34 |
"""
|
35 |
Calculates the similarity scores between the input sentence and a list of candidate sentences.
|
36 |
|