Spaces:
Runtime error
Runtime error
fix unknown language error
Browse files
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 = []
|