按照官方文档部署了deeplx的容器
name: mmp services: stand: container_name: mmp restart: no volumes: - C:\Users\zen\Github\MultimediaProcessingPipeline:/data image: zhangyiming748/stand:latest ports: - "8022:22" deeplx: container_name: deeplx image: ghcr.io/owo-network/deeplx:latest restart: no ports: - "2147:1188" # environment: # - TOKEN=helloworld # - DL_SESSION=xxxxxx
发api请求
curl -X POST http://192.168.1.31:2147/translate \ -H "Content-Type: application/json" \ -d '{ "text": "Hello, world!", "source_lang": "EN", "target_lang": "DE" }'
返回异常
{ "code": 404, "message": "No text to translate" }
效果图如下
在改版之前是不需要Authorization 就能翻译
现在我也不知道去哪个网站才能获得这个token
望大佬解惑
|