Spaces:
Sleeping
Sleeping
Update app.py
Browse filesModel Choice list fix
app.py
CHANGED
|
@@ -263,7 +263,7 @@ def compute(sentences, version = 'v3'):
|
|
| 263 |
for index, sent in enumerate(sentences):
|
| 264 |
if type(model_choice) == list:
|
| 265 |
all_models_pred = []
|
| 266 |
-
for model in
|
| 267 |
output = model.predict(sent)
|
| 268 |
output_label = output[index]['label']
|
| 269 |
output_prob = output[index]['score']
|
|
|
|
| 263 |
for index, sent in enumerate(sentences):
|
| 264 |
if type(model_choice) == list:
|
| 265 |
all_models_pred = []
|
| 266 |
+
for model in model_choice:
|
| 267 |
output = model.predict(sent)
|
| 268 |
output_label = output[index]['label']
|
| 269 |
output_prob = output[index]['score']
|