This message was deleted.
# ask-for-help
s
This message was deleted.
f
Hello, could you please try to use runner.predict.run(input) like in the documentation.
Btw, I have never seen float as the output of the api in the documentation, are you sure we can use it directly? you may use something like that.
Copy code
class Output(BaseModel):
    result: float
@svc.api(input=JSON(), output=JSON(pydantic_model=Output))
f
I'll give that a shot
Yup. Those two combined helped. And I was passing in the input as a 1-dimensional numpy array. Setting the output to a numpy array spat out the correct result. Just have to fetch the float from inside the array 🙂
f
If you solved you problem, it would be great if you answer your question on stackoverflow, it may help others 🙃
f
Will write up something more detailed and post it as an answer 😄
💯 2
Thank you for your help!
🤙 2