Spaces:
Runtime error
Runtime error
ThapeloAndrewSindane
commited on
Commit
•
3f52434
1
Parent(s):
edd31b5
fix
Browse filesFix colon
app.py
CHANGED
@@ -311,7 +311,7 @@ def compute(sentences, version = 'v3'):
|
|
311 |
|
312 |
else:
|
313 |
output = model_choice.predict(sent)
|
314 |
-
if version not in ["openlid-201", "GlotLID v3"]
|
315 |
output_label = output[index]['label']
|
316 |
output_prob = output[index]['score']
|
317 |
output_label_language = output[index]['label']
|
|
|
311 |
|
312 |
else:
|
313 |
output = model_choice.predict(sent)
|
314 |
+
if version not in ["openlid-201", "GlotLID v3"]:
|
315 |
output_label = output[index]['label']
|
316 |
output_prob = output[index]['score']
|
317 |
output_label_language = output[index]['label']
|