Spaces:
Sleeping
Sleeping
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']
|