Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -56,7 +56,7 @@ async def analyze(request: Request):
|
|
56 |
|
57 |
# Build the result using fixed order
|
58 |
result = [
|
59 |
-
{"label":
|
60 |
for label in fixed_order
|
61 |
]
|
62 |
|
|
|
56 |
|
57 |
# Build the result using fixed order
|
58 |
result = [
|
59 |
+
{"label": label, "score": round(float(probs[config.label2id[label]]), 4)}
|
60 |
for label in fixed_order
|
61 |
]
|
62 |
|