Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ async def predict(request: Request):
|
|
| 56 |
print("OUTPUTS",outputs)
|
| 57 |
# Prepare response with converted types
|
| 58 |
return {
|
| 59 |
-
"embedding": outputs[0].astype(float).tolist(),
|
| 60 |
"input_ids": inputs["input_ids"][0].tolist(),
|
| 61 |
"attention_mask": inputs["attention_mask"][0].tolist()
|
| 62 |
}
|
|
|
|
| 56 |
print("OUTPUTS",outputs)
|
| 57 |
# Prepare response with converted types
|
| 58 |
return {
|
| 59 |
+
"embedding": outputs[0][0].astype(float).tolist(),
|
| 60 |
"input_ids": inputs["input_ids"][0].tolist(),
|
| 61 |
"attention_mask": inputs["attention_mask"][0].tolist()
|
| 62 |
}
|