[support] kilrah/libretranslate


Kilrah

Recommended Posts

[Template only, I am not the container author/maintainer]

 

Template: https://github.com/kilrah/unraid-docker-templates/raw/main/templates/libretranslate.xml 

Project: https://github.com/LibreTranslate/LibreTranslate

Registry: https://hub.docker.com/r/libretranslate/libretranslate

 

Free and Open Source Machine Translation API, entirely self-hosted.

First start takes a while as models are being downloaded.

 

Warning: This container is very big, expect about 12GB of Docker image usage.

Edited by Kilrah
  • Like 1
Link to comment

Anything special that needs to be done on the setup? I am getting an error when trying to query libretranslate:

 

POST / HTTP/1.1

Content-Type: application/json

User-Agent: PostmanRuntime/7.29.2

Accept: */*

Host: 192.168.0.99:5000

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 59

 

{

"q": "Hello!",

"source": "en",

"target": "es"

}

 

HTTP/1.1 405 METHOD NOT ALLOWED

Access-Control-Allow-Credentials: true

Access-Control-Allow-Headers: Authorization, Content-Type

Access-Control-Allow-Methods: GET, POST

Access-Control-Allow-Origin: *

Access-Control-Expose-Headers: Authorization

Access-Control-Max-Age: 1728000

Allow: HEAD, GET, OPTIONS

Content-Length: 153

Content-Type: text/html; charset=utf-8

Date: Thu, 24 Nov 2022 20:40:21 GMT

Server: waitress

 

<!doctype html>

<html lang=en>

<title>405 Method Not Allowed</title>

<h1>Method Not Allowed</h1>

<p>The method is not allowed for the requested URL.</p>

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.