BK-AI commited on
Commit
8aa124c
·
1 Parent(s): 5f2ec77

fix unknown language error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def textclassification(SubmittedText):
139
  if language == "fr":
140
  SubmittedText = translate_to_de(SubmittedText)
141
  elif language != "de":
142
- return UNKNOWN_LANG_TEXT, None
143
 
144
  # Make the prediction with the 1000 first characters
145
  images = []
 
139
  if language == "fr":
140
  SubmittedText = translate_to_de(SubmittedText)
141
  elif language != "de":
142
+ return UNKNOWN_LANG_TEXT, None, None, None
143
 
144
  # Make the prediction with the 1000 first characters
145
  images = []