ayush-thakur02 commited on
Commit
d5cca89
1 Parent(s): 036ca40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.15) -> List[Dict[str, Any]]:
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