Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -272,7 +272,7 @@ def compute(sentences, version = 'v3'):
|
|
| 272 |
all_models_pred = []
|
| 273 |
for model in model_choice:
|
| 274 |
output = model.predict(sent)
|
| 275 |
-
if version in ["openlid-201", "GlotLID v3"]:
|
| 276 |
|
| 277 |
output_label = output[index]['label']
|
| 278 |
output_prob = output[index]['score']
|
|
|
|
| 272 |
all_models_pred = []
|
| 273 |
for model in model_choice:
|
| 274 |
output = model.predict(sent)
|
| 275 |
+
if version not in ["openlid-201", "GlotLID v3"]:
|
| 276 |
|
| 277 |
output_label = output[index]['label']
|
| 278 |
output_prob = output[index]['score']
|