Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def classify_email(text):
|
|
| 107 |
|
| 108 |
for model_name in model_names:
|
| 109 |
response += f"{model_name}: "
|
| 110 |
-
for j, prob in enumerate(probabilities[model_name]):
|
| 111 |
response += f"{labels[j]}: {prob:.2f}%"
|
| 112 |
response += "\n"
|
| 113 |
|
|
|
|
| 107 |
|
| 108 |
for model_name in model_names:
|
| 109 |
response += f"{model_name}: "
|
| 110 |
+
for j, prob in enumerate(probabilities[model_name][0]):
|
| 111 |
response += f"{labels[j]}: {prob:.2f}%"
|
| 112 |
response += "\n"
|
| 113 |
|