Spaces:
Runtime error
Runtime error
Commit ·
f9b0d45
1
Parent(s): 2d780cf
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ labels = ["negative", "positive"]
|
|
| 9 |
|
| 10 |
def predict(opinion):
|
| 11 |
pred,pred_idx,probs = learner.predict(opinion)
|
|
|
|
| 12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 13 |
|
| 14 |
# Creamos la interfaz y la lanzamos.
|
|
|
|
| 9 |
|
| 10 |
def predict(opinion):
|
| 11 |
pred,pred_idx,probs = learner.predict(opinion)
|
| 12 |
+
print("coco")
|
| 13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 14 |
|
| 15 |
# Creamos la interfaz y la lanzamos.
|