Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ labels = ['A1', 'A2', 'B1', 'B2', 'C1']
|
|
9 |
|
10 |
# Definimos una funci贸n que se encarga de llevar a cabo las predicciones
|
11 |
def predict(text):
|
|
|
12 |
pred,pred_idx,probs = learner.predict(text)
|
13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
14 |
|
|
|
9 |
|
10 |
# Definimos una funci贸n que se encarga de llevar a cabo las predicciones
|
11 |
def predict(text):
|
12 |
+
print(learner.predict(text))
|
13 |
pred,pred_idx,probs = learner.predict(text)
|
14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
15 |
|