Skip to content

Commit faf2381

Browse files
committed
feat: add password authentication option and update related translations
1 parent e1b3f47 commit faf2381

File tree

4 files changed

+13
-24
lines changed

4 files changed

+13
-24
lines changed

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8709,4 +8709,8 @@ msgid "Duration"
87098709
msgstr ""
87108710

87118711
msgid "Failed to generate video"
8712-
msgstr ""
8712+
msgstr ""
8713+
8714+
8715+
msgid "password"
8716+
msgstr "Password login"

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8835,4 +8835,7 @@ msgid "Duration"
88358835
msgstr "时长"
88368836

88378837
msgid "Failed to generate video"
8838-
msgstr "生成视频失败"
8838+
msgstr "生成视频失败"
8839+
8840+
msgid "password"
8841+
msgstr "密码登录"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8835,4 +8835,7 @@ msgid "Duration"
88358835
msgstr "時長"
88368836

88378837
msgid "Failed to generate video"
8838-
msgstr "生成視頻失敗"
8838+
msgstr "生成視頻失敗"
8839+
8840+
msgid "password"
8841+
msgstr "密码登录"

apps/models_provider/impl/siliconCloud_model_provider/model/tts.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,5 @@ def text_to_speech(self, text):
6060
) as response:
6161
return response.read()
6262

63-
import requests
64-
65-
url = "https://api.siliconflow.cn/v1/audio/speech"
66-
67-
payload = {
68-
"model": "FunAudioLLM/CosyVoice2-0.5B",
69-
"input": "Can you say it with a happy emotion? <|endofprompt|>I'm so happy, Spring Festival is coming!",
70-
"voice": "FunAudioLLM/CosyVoice2-0.5B:alex",
71-
"response_format": "mp3",
72-
"sample_rate": 123,
73-
"stream": True,
74-
"speed": 1,
75-
"gain": 0
76-
}
77-
headers = {
78-
"Authorization": "Bearer <token>",
79-
"Content-Type": "application/json"
80-
}
81-
82-
response = requests.request("POST", url, json=payload, headers=headers)
83-
8463
def is_cache_model(self):
8564
return False

0 commit comments

Comments
 (0)