ThapeloAndrewSindane commited on
Commit
a8cf13d
·
verified ·
1 Parent(s): 3f52434

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']