Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
computermacgyver committed Sep 27, 2024
1 parent 6c3c664 commit fefd4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/lib/langid.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def langid(text):
# 'message': 'Disagreement between fasttext and cld. Returning higher confidence model',
# 'parameters':{'text':text, 'fasttext':fasttext_result, 'cld':cld_result,},
# }))
if fasttext['result']['confidence'] > cld_result['result']['confidence']:
if fasttext_result['result']['confidence'] > cld_result['result']['confidence']:
return fasttext_result
else:
return cld_result
Expand Down

0 comments on commit fefd4f0

Please sign in to comment.