Truss Predict -d error
Whenever I write truss predict -d '"String here"' I get this error. ───────────────────────────────────────── Request data must be valid json.
To Reproduce run truss predict -d '"String Here"'
Expected behavior I am supposed to get the string back according to the documentation
Screenshots/Logs
Desktop (please complete the following information):
- OS: Windows
- Environment versions: Python 3.11
- Truss version: truss, version 0.7.18
Additional context Add any other context about the problem here.
Hi @Yitzkak -- thanks for reporting! I just tried reproducing this, and could not on Mac or Linux -- will try getting ahold of a windows VM to test on.
Okay. Thanks for the response
On Mon, 27 Nov 2023 at 03:41, Sidharth Shanker @.***> wrote:
Hi @Yitzkak https://github.com/Yitzkak -- thanks for reporting! I just tried reproducing this, and could not on Mac or Linux -- will try getting ahold of a windows VM to test on.
— Reply to this email directly, view it on GitHub https://github.com/basetenlabs/truss/issues/750#issuecomment-1827039689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLRZRDUM64FCP5IEVGQJTDYGP4VPAVCNFSM6AAAAAA73FKSOKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRXGAZTSNRYHE . You are receiving this because you were mentioned.Message ID: @.***>
This could be due to a key mismatch in your model.py predict method. Can you please share that ? Also, it could also be due to parsing issue as windows parses "" & '' quotes weirdly.