mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-04-24 02:30:02 +08:00
feature:支持翻译歌词
This commit is contained in:
@@ -4,7 +4,8 @@ import time
|
||||
|
||||
import requests
|
||||
|
||||
import translators as ts
|
||||
|
||||
from component import translators as ts
|
||||
|
||||
|
||||
def translation_lyc_text(contents):
|
||||
|
||||
5
component/translators/__init__.py
Normal file
5
component/translators/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
__version__ = "5.8.0"
|
||||
__author__ = "UlionTse"
|
||||
|
||||
|
||||
from .server import translate_text, translate_html, translators_pool, get_languages, preaccelerate_and_speedtest
|
||||
5391
component/translators/server.py
Normal file
5391
component/translators/server.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,11 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
libpq-dev \
|
||||
default-libmysqlclient-dev \
|
||||
libffi-dev \
|
||||
libjpeg-dev
|
||||
libjpeg-dev \
|
||||
libxml2 \
|
||||
libxslt1-dev \
|
||||
libssl-dev \
|
||||
python-dev
|
||||
# Requirements are installed here to ensure they will be cached.
|
||||
COPY ./requirements .
|
||||
# Create Python Dependency and Sub-Dependency Wheels.
|
||||
|
||||
@@ -6,7 +6,7 @@ django-cors-headers==3.2.1
|
||||
django-filter==2.0.0
|
||||
djangorestframework==3.8.1
|
||||
python-dateutil==2.8.2
|
||||
requests==2.27.1
|
||||
requests==2.31.0
|
||||
gunicorn==20.1.0
|
||||
gevent==21.12.0
|
||||
djangorestframework-jwt==1.11.0
|
||||
@@ -19,5 +19,4 @@ redis==3.2.0
|
||||
mysqlclient==1.4.4
|
||||
sqlalchemy==1.4.23
|
||||
PyExecJS==1.5.1
|
||||
translators==5.8.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user