Skip to content

Commit

Permalink
Merge pull request #414 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
闲时任务功能UI适配;删减违禁词
  • Loading branch information
Ikaros-521 authored Nov 7, 2023
2 parents 0c5cbe7 + e7d301a commit 0e15515
Show file tree
Hide file tree
Showing 9 changed files with 372 additions and 81 deletions.
81 changes: 56 additions & 25 deletions UI_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def setupUi(self, MainWindow):
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -64, 991, 10925))
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, -8360, 991, 11145))
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setContentsMargins(35, 20, 35, 20)
Expand Down Expand Up @@ -1415,6 +1415,34 @@ def setupUi(self, MainWindow):
self.gridLayout_61.setColumnStretch(0, 9)
self.gridLayout_61.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_schedule)
self.groupBox_idle_time_task = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_idle_time_task.setObjectName("groupBox_idle_time_task")
self.gridLayout_87 = QtWidgets.QGridLayout(self.groupBox_idle_time_task)
self.gridLayout_87.setObjectName("gridLayout_87")
spacerItem30 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_87.addItem(spacerItem30, 0, 1, 1, 1)
self.gridLayout_idle_time_task = QtWidgets.QGridLayout()
self.gridLayout_idle_time_task.setObjectName("gridLayout_idle_time_task")
self.gridLayout_87.addLayout(self.gridLayout_idle_time_task, 0, 0, 1, 1)
self.groupBox_idle_time_task_comment = QtWidgets.QGroupBox(self.groupBox_idle_time_task)
self.groupBox_idle_time_task_comment.setObjectName("groupBox_idle_time_task_comment")
self.gridLayout_94 = QtWidgets.QGridLayout(self.groupBox_idle_time_task_comment)
self.gridLayout_94.setObjectName("gridLayout_94")
self.gridLayout_idle_time_task_comment = QtWidgets.QGridLayout()
self.gridLayout_idle_time_task_comment.setObjectName("gridLayout_idle_time_task_comment")
self.gridLayout_94.addLayout(self.gridLayout_idle_time_task_comment, 0, 0, 1, 1)
self.gridLayout_87.addWidget(self.groupBox_idle_time_task_comment, 1, 0, 1, 1)
self.groupBox_idle_time_task_local_audio = QtWidgets.QGroupBox(self.groupBox_idle_time_task)
self.groupBox_idle_time_task_local_audio.setObjectName("groupBox_idle_time_task_local_audio")
self.gridLayout_96 = QtWidgets.QGridLayout(self.groupBox_idle_time_task_local_audio)
self.gridLayout_96.setObjectName("gridLayout_96")
self.gridLayout_idle_time_task_local_audio = QtWidgets.QGridLayout()
self.gridLayout_idle_time_task_local_audio.setObjectName("gridLayout_idle_time_task_local_audio")
self.gridLayout_96.addLayout(self.gridLayout_idle_time_task_local_audio, 0, 0, 1, 1)
self.gridLayout_87.addWidget(self.groupBox_idle_time_task_local_audio, 2, 0, 1, 1)
self.gridLayout_87.setColumnStretch(0, 9)
self.gridLayout_87.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_idle_time_task)
self.groupBox_ddsp_svc = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_ddsp_svc.setObjectName("groupBox_ddsp_svc")
self.gridLayout_49 = QtWidgets.QGridLayout(self.groupBox_ddsp_svc)
Expand Down Expand Up @@ -1464,8 +1492,8 @@ def setupUi(self, MainWindow):
self.lineEdit_ddsp_svc_sampleRate.setObjectName("lineEdit_ddsp_svc_sampleRate")
self.gridLayout_48.addWidget(self.lineEdit_ddsp_svc_sampleRate, 6, 1, 1, 1)
self.gridLayout_49.addLayout(self.gridLayout_48, 0, 0, 1, 1)
spacerItem30 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_49.addItem(spacerItem30, 0, 1, 1, 1)
spacerItem31 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_49.addItem(spacerItem31, 0, 1, 1, 1)
self.gridLayout_49.setColumnStretch(0, 9)
self.gridLayout_49.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_ddsp_svc)
Expand Down Expand Up @@ -1512,8 +1540,8 @@ def setupUi(self, MainWindow):
self.lineEdit_so_vits_svc_wav_format.setObjectName("lineEdit_so_vits_svc_wav_format")
self.gridLayout_35.addWidget(self.lineEdit_so_vits_svc_wav_format, 5, 1, 1, 1)
self.gridLayout_36.addLayout(self.gridLayout_35, 0, 0, 1, 1)
spacerItem31 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_36.addItem(spacerItem31, 0, 1, 1, 1)
spacerItem32 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_36.addItem(spacerItem32, 0, 1, 1, 1)
self.gridLayout_36.setColumnStretch(0, 9)
self.gridLayout_36.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_so_vits_svc)
Expand Down Expand Up @@ -1632,8 +1660,8 @@ def setupUi(self, MainWindow):
self.lineEdit_prompt_llm_after_prompt.setObjectName("lineEdit_prompt_llm_after_prompt")
self.gridLayout_31.addWidget(self.lineEdit_prompt_llm_after_prompt, 3, 1, 1, 1)
self.gridLayout_32.addLayout(self.gridLayout_31, 0, 0, 1, 1)
spacerItem32 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_32.addItem(spacerItem32, 0, 1, 1, 1)
spacerItem33 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_32.addItem(spacerItem33, 0, 1, 1, 1)
self.gridLayout_32.setColumnStretch(0, 9)
self.gridLayout_32.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_sd)
Expand Down Expand Up @@ -1665,8 +1693,8 @@ def setupUi(self, MainWindow):
self.checkBox_trends_copywriting_enable.setObjectName("checkBox_trends_copywriting_enable")
self.gridLayout_trends_copywriting.addWidget(self.checkBox_trends_copywriting_enable, 1, 1, 1, 1)
self.gridLayout_66.addLayout(self.gridLayout_trends_copywriting, 0, 0, 1, 1)
spacerItem33 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_66.addItem(spacerItem33, 0, 1, 1, 1)
spacerItem34 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_66.addItem(spacerItem34, 0, 1, 1, 1)
self.gridLayout_66.setColumnStretch(0, 9)
self.gridLayout_66.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_trends_copywriting)
Expand All @@ -1683,8 +1711,8 @@ def setupUi(self, MainWindow):
self.lineEdit_header_useragent.setObjectName("lineEdit_header_useragent")
self.gridLayout_19.addWidget(self.lineEdit_header_useragent, 0, 1, 1, 1)
self.gridLayout_18.addLayout(self.gridLayout_19, 0, 1, 1, 1)
spacerItem34 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_18.addItem(spacerItem34, 0, 2, 1, 1)
spacerItem35 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_18.addItem(spacerItem35, 0, 2, 1, 1)
self.gridLayout_18.setColumnStretch(1, 9)
self.gridLayout_18.setColumnStretch(2, 1)
self.verticalLayout.addWidget(self.groupBox_header)
Expand All @@ -1695,8 +1723,8 @@ def setupUi(self, MainWindow):
self.gridLayout_web_captions_printer = QtWidgets.QGridLayout()
self.gridLayout_web_captions_printer.setObjectName("gridLayout_web_captions_printer")
self.gridLayout_69.addLayout(self.gridLayout_web_captions_printer, 0, 0, 1, 1)
spacerItem35 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_69.addItem(spacerItem35, 0, 1, 1, 1)
spacerItem36 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_69.addItem(spacerItem36, 0, 1, 1, 1)
self.gridLayout_69.setColumnStretch(0, 9)
self.gridLayout_69.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_web_captions_printer)
Expand All @@ -1707,17 +1735,17 @@ def setupUi(self, MainWindow):
self.gridLayout_database = QtWidgets.QGridLayout()
self.gridLayout_database.setObjectName("gridLayout_database")
self.gridLayout_67.addLayout(self.gridLayout_database, 0, 0, 1, 1)
spacerItem36 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_67.addItem(spacerItem36, 0, 1, 1, 1)
spacerItem37 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_67.addItem(spacerItem37, 0, 1, 1, 1)
self.gridLayout_67.setColumnStretch(0, 9)
self.gridLayout_67.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_database)
self.groupBox_key_mapping = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_key_mapping.setObjectName("groupBox_key_mapping")
self.gridLayout_90 = QtWidgets.QGridLayout(self.groupBox_key_mapping)
self.gridLayout_90.setObjectName("gridLayout_90")
spacerItem37 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_90.addItem(spacerItem37, 0, 1, 1, 1)
spacerItem38 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_90.addItem(spacerItem38, 0, 1, 1, 1)
self.gridLayout_key_mapping = QtWidgets.QGridLayout()
self.gridLayout_key_mapping.setObjectName("gridLayout_key_mapping")
self.checkBox_key_mapping_enable = QtWidgets.QCheckBox(self.groupBox_key_mapping)
Expand Down Expand Up @@ -1778,8 +1806,8 @@ def setupUi(self, MainWindow):
self.widget.setObjectName("widget")
self.gridLayout_37 = QtWidgets.QGridLayout(self.widget)
self.gridLayout_37.setObjectName("gridLayout_37")
spacerItem38 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem38, 6, 0, 1, 1)
spacerItem39 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem39, 6, 0, 1, 1)
self.textEdit_copywriting_edit = QtWidgets.QTextEdit(self.widget)
self.textEdit_copywriting_edit.setStyleSheet("min-height:300px;")
self.textEdit_copywriting_edit.setObjectName("textEdit_copywriting_edit")
Expand Down Expand Up @@ -1819,8 +1847,8 @@ def setupUi(self, MainWindow):
"border-radius: 3px;")
self.pushButton_copywriting_pause_play.setObjectName("pushButton_copywriting_pause_play")
self.gridLayout_37.addWidget(self.pushButton_copywriting_pause_play, 6, 5, 1, 1)
spacerItem39 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem39, 6, 1, 1, 1)
spacerItem40 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem40, 6, 1, 1, 1)
self.label_copywriting_audio_interval = QtWidgets.QLabel(self.widget)
self.label_copywriting_audio_interval.setStyleSheet("")
self.label_copywriting_audio_interval.setObjectName("label_copywriting_audio_interval")
Expand Down Expand Up @@ -2061,8 +2089,8 @@ def setupUi(self, MainWindow):
self.lineEdit_talk_baidu_secret_key.setObjectName("lineEdit_talk_baidu_secret_key")
self.gridLayout_45.addWidget(self.lineEdit_talk_baidu_secret_key, 2, 1, 1, 1)
self.gridLayout_40.addWidget(self.groupBox_talk_baidu, 7, 0, 1, 5)
spacerItem40 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_40.addItem(spacerItem40, 0, 5, 1, 1)
spacerItem41 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_40.addItem(spacerItem41, 0, 5, 1, 1)
self.gridLayout_40.setRowMinimumHeight(0, 1)
self.gridLayout_40.setRowMinimumHeight(1, 1)
self.gridLayout_40.setRowMinimumHeight(2, 1)
Expand Down Expand Up @@ -2188,8 +2216,8 @@ def setupUi(self, MainWindow):
self.gridLayout_integral_common.setColumnStretch(1, 6)
self.gridLayout_79.addLayout(self.gridLayout_integral_common, 0, 0, 1, 1)
self.gridLayout_78.addWidget(self.groupBox_integral_common, 0, 0, 1, 1)
spacerItem41 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_78.addItem(spacerItem41, 0, 1, 1, 1)
spacerItem42 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_78.addItem(spacerItem42, 0, 1, 1, 1)
self.gridLayout_78.setColumnStretch(0, 12)
self.gridLayout_78.setColumnStretch(1, 1)
self.verticalLayout_6.addWidget(self.widget_3)
Expand Down Expand Up @@ -2518,6 +2546,9 @@ def retranslateUi(self, MainWindow):
self.label_choose_song_match_fail_copy.setText(_translate("MainWindow", "匹配失败文案"))
self.label_choose_song_random_cmd.setText(_translate("MainWindow", "随机点歌命令"))
self.groupBox_schedule.setTitle(_translate("MainWindow", "定时任务"))
self.groupBox_idle_time_task.setTitle(_translate("MainWindow", "闲时任务"))
self.groupBox_idle_time_task_comment.setTitle(_translate("MainWindow", "LLM模式"))
self.groupBox_idle_time_task_local_audio.setTitle(_translate("MainWindow", "本地音频模式"))
self.groupBox_ddsp_svc.setTitle(_translate("MainWindow", "DDSP_SVC"))
self.label_ddsp_svc_enable.setText(_translate("MainWindow", "启用"))
self.label_ddsp_svc_fSafePrefixPadLength.setText(_translate("MainWindow", "安全前缀填充长度"))
Expand Down
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"sd": true,
"log": true,
"schedule": true,
"idle_time_task": true,
"database": true,
"play_audio": true,
"web_captions_printer": true,
Expand Down
1 change: 1 addition & 0 deletions config.json.bak
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"sd": true,
"log": true,
"schedule": true,
"idle_time_task": true,
"database": true,
"play_audio": true,
"web_captions_printer": true,
Expand Down
1 change: 0 additions & 1 deletion data/badwords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3508,7 +3508,6 @@
毛肛
毒龙钻
米青
武器
馬英九
杨建亭
無毛穴
Expand Down
2 changes: 1 addition & 1 deletion docs/投资人/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{
name: "存在感患者",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_230722160559_QQ%E5%9B%BE%E7%89%8720230722234802.jpg",
amount: "¥410.8"
amount: "¥548.8"
},
{
name: "月零宫白",
Expand Down
Binary file modified docs/投资人/invest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0e15515

Please sign in to comment.