github-actions[bot] commited on
Commit ·
c7caad9
1
Parent(s): aa4ebf1
🚀 Deploy from GitHub Actions - 2026-02-09 14:30:01
Browse files
app.py
CHANGED
|
@@ -337,9 +337,9 @@ async def predict_emotion(file: UploadFile = File(...)):
|
|
| 337 |
|
| 338 |
# 3. Inference ONNX
|
| 339 |
outputs = onnx_session.run(['output'], {'input': input_tensor})
|
| 340 |
-
|
| 341 |
-
raw = outputs[0][0]
|
| 342 |
-
scores_array = 3.0 * (1 / (1 + np.exp(-raw)))
|
| 343 |
|
| 344 |
# 4. Format résultats
|
| 345 |
return PredictionResponse(
|
|
|
|
| 337 |
|
| 338 |
# 3. Inference ONNX
|
| 339 |
outputs = onnx_session.run(['output'], {'input': input_tensor})
|
| 340 |
+
scores_array = outputs[0][0]
|
| 341 |
+
# raw = outputs[0][0]
|
| 342 |
+
# scores_array = 3.0 * (1 / (1 + np.exp(-raw)))
|
| 343 |
|
| 344 |
# 4. Format résultats
|
| 345 |
return PredictionResponse(
|