TymaaHammouda commited on
Commit
726215a
·
1 Parent(s): 6e3aaba

Update useAlma to string not boolean

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def predict(request: synonymsRequest):
50
  # content = {"resp": list_of_synon_with_fuzzy_value, "statusText": "OK","statusCode" : 0}
51
  # else:
52
  final_synset = []
53
- if useALMA == True:
54
  synonyms = synset.split("|")
55
  for synonym in synonyms:
56
  final_synset.append(analyze(synonym.strip(), language = "MSA", task = "lemmatization", flag = "1")[0]["lemma"])
 
50
  # content = {"resp": list_of_synon_with_fuzzy_value, "statusText": "OK","statusCode" : 0}
51
  # else:
52
  final_synset = []
53
+ if useALMA == "true":
54
  synonyms = synset.split("|")
55
  for synonym in synonyms:
56
  final_synset.append(analyze(synonym.strip(), language = "MSA", task = "lemmatization", flag = "1")[0]["lemma"])