The /detect API not giving output

I am running libretranslate on an ubuntu 18 instance using docker. The docker command I’ve used to start the instance is

docker run -ti --rm -p 3000:5000 libretranslate/libretranslate

After this I am able to access the UI on port 3000 of the instance and try out the translation. The translation works fine. But when I try to hit the /detect API it just gives me back this response.

    "confidence": 0,
    "language": "en"

In the logs, I can see something like “WARNING:polyglot.detect.base:Detector is not able to detect the language reliably.”

How can I fix this?

Thank you

Was able to fix this by self deploying the app

1 Like