forked from Ikaros-521/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UI_main.py
1139 lines (1132 loc) · 84.3 KB
/
UI_main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui\main.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1067, 799)
MainWindow.setStyleSheet("QPushButton:hover {\n"
" background-color: #1976D2;\n"
" \n"
" }")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_20 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_20.setObjectName("gridLayout_20")
self.pushButton_run_page = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_run_page.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_run_page.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: #e6a23c;\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_run_page.setObjectName("pushButton_run_page")
self.gridLayout_20.addWidget(self.pushButton_run_page, 4, 1, 1, 1)
self.pushButton_save = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_save.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_save.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: rgba(64, 158, 255, 255);\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_save.setObjectName("pushButton_save")
self.gridLayout_20.addWidget(self.pushButton_save, 0, 1, 1, 1)
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
self.stackedWidget.setObjectName("stackedWidget")
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.gridLayout_21 = QtWidgets.QGridLayout(self.page)
self.gridLayout_21.setObjectName("gridLayout_21")
self.scrollArea = QtWidgets.QScrollArea(self.page)
self.scrollArea.setStyleSheet("font: 75 12pt \"微软雅黑\";\n"
"\n"
"")
self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 860, 4599))
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.verticalLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout.setContentsMargins(35, 20, 35, 20)
self.verticalLayout.setSpacing(20)
self.verticalLayout.setObjectName("verticalLayout")
self.formWidget = QtWidgets.QWidget(self.scrollAreaWidgetContents)
self.formWidget.setObjectName("formWidget")
self.gridLayout = QtWidgets.QGridLayout(self.formWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.groupBox_claude = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_claude.setObjectName("groupBox_claude")
self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_claude)
self.gridLayout_7.setObjectName("gridLayout_7")
self.lineEdit_claude_slack_user_token = QtWidgets.QLineEdit(self.groupBox_claude)
self.lineEdit_claude_slack_user_token.setObjectName("lineEdit_claude_slack_user_token")
self.gridLayout_7.addWidget(self.lineEdit_claude_slack_user_token, 0, 1, 1, 1)
self.gridLayout_6 = QtWidgets.QGridLayout()
self.gridLayout_6.setObjectName("gridLayout_6")
self.label_claude_slack_user_token = QtWidgets.QLabel(self.groupBox_claude)
self.label_claude_slack_user_token.setObjectName("label_claude_slack_user_token")
self.gridLayout_6.addWidget(self.label_claude_slack_user_token, 0, 0, 1, 1)
self.gridLayout_7.addLayout(self.gridLayout_6, 0, 0, 1, 1)
self.label_claude_bot_user_id = QtWidgets.QLabel(self.groupBox_claude)
self.label_claude_bot_user_id.setObjectName("label_claude_bot_user_id")
self.gridLayout_7.addWidget(self.label_claude_bot_user_id, 1, 0, 1, 1)
self.lineEdit_claude_bot_user_id = QtWidgets.QLineEdit(self.groupBox_claude)
self.lineEdit_claude_bot_user_id.setObjectName("lineEdit_claude_bot_user_id")
self.gridLayout_7.addWidget(self.lineEdit_claude_bot_user_id, 1, 1, 1, 1)
self.gridLayout.addWidget(self.groupBox_claude, 16, 0, 1, 3)
self.lineEdit_after_prompt = QtWidgets.QLineEdit(self.formWidget)
self.lineEdit_after_prompt.setObjectName("lineEdit_after_prompt")
self.gridLayout.addWidget(self.lineEdit_after_prompt, 5, 1, 1, 1)
self.groupBox_openai = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_openai.setObjectName("groupBox_openai")
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_openai)
self.gridLayout_4.setObjectName("gridLayout_4")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setSpacing(2)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_openai_api = QtWidgets.QLabel(self.groupBox_openai)
self.label_openai_api.setObjectName("label_openai_api")
self.gridLayout_2.addWidget(self.label_openai_api, 0, 0, 1, 1)
self.lineEdit_openai_api = QtWidgets.QLineEdit(self.groupBox_openai)
self.lineEdit_openai_api.setObjectName("lineEdit_openai_api")
self.gridLayout_2.addWidget(self.lineEdit_openai_api, 0, 2, 1, 1)
self.label_openai_api_key = QtWidgets.QLabel(self.groupBox_openai)
self.label_openai_api_key.setObjectName("label_openai_api_key")
self.gridLayout_2.addWidget(self.label_openai_api_key, 1, 0, 1, 1)
self.textEdit_openai_api_key = QtWidgets.QTextEdit(self.groupBox_openai)
self.textEdit_openai_api_key.setObjectName("textEdit_openai_api_key")
self.gridLayout_2.addWidget(self.textEdit_openai_api_key, 1, 1, 1, 2)
self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_openai, 13, 0, 1, 3)
self.label_need_lang = QtWidgets.QLabel(self.formWidget)
self.label_need_lang.setObjectName("label_need_lang")
self.gridLayout.addWidget(self.label_need_lang, 3, 0, 1, 1)
self.lineEdit_room_display_id = QtWidgets.QLineEdit(self.formWidget)
self.lineEdit_room_display_id.setObjectName("lineEdit_room_display_id")
self.gridLayout.addWidget(self.lineEdit_room_display_id, 1, 1, 1, 1)
self.label_platform = QtWidgets.QLabel(self.formWidget)
self.label_platform.setAutoFillBackground(True)
self.label_platform.setObjectName("label_platform")
self.gridLayout.addWidget(self.label_platform, 0, 0, 1, 1)
self.label_after_prompt = QtWidgets.QLabel(self.formWidget)
self.label_after_prompt.setObjectName("label_after_prompt")
self.gridLayout.addWidget(self.label_after_prompt, 5, 0, 1, 1)
self.lineEdit_before_prompt = QtWidgets.QLineEdit(self.formWidget)
self.lineEdit_before_prompt.setObjectName("lineEdit_before_prompt")
self.gridLayout.addWidget(self.lineEdit_before_prompt, 4, 1, 1, 1)
self.groupBox_chatglm = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_chatglm.setObjectName("groupBox_chatglm")
self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_chatglm)
self.gridLayout_9.setObjectName("gridLayout_9")
self.gridLayout_8 = QtWidgets.QGridLayout()
self.gridLayout_8.setObjectName("gridLayout_8")
self.label_chatglm_api_ip_port = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_api_ip_port.setObjectName("label_chatglm_api_ip_port")
self.gridLayout_8.addWidget(self.label_chatglm_api_ip_port, 0, 0, 1, 1)
self.lineEdit_chatglm_max_length = QtWidgets.QLineEdit(self.groupBox_chatglm)
self.lineEdit_chatglm_max_length.setObjectName("lineEdit_chatglm_max_length")
self.gridLayout_8.addWidget(self.lineEdit_chatglm_max_length, 1, 1, 1, 1)
self.lineEdit_chatglm_top_p = QtWidgets.QLineEdit(self.groupBox_chatglm)
self.lineEdit_chatglm_top_p.setObjectName("lineEdit_chatglm_top_p")
self.gridLayout_8.addWidget(self.lineEdit_chatglm_top_p, 2, 1, 1, 1)
self.lineEdit_chatglm_api_ip_port = QtWidgets.QLineEdit(self.groupBox_chatglm)
self.lineEdit_chatglm_api_ip_port.setObjectName("lineEdit_chatglm_api_ip_port")
self.gridLayout_8.addWidget(self.lineEdit_chatglm_api_ip_port, 0, 1, 1, 1)
self.label_chatglm_top_p = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_top_p.setObjectName("label_chatglm_top_p")
self.gridLayout_8.addWidget(self.label_chatglm_top_p, 2, 0, 1, 1)
self.label_chatglm_max_length = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_max_length.setObjectName("label_chatglm_max_length")
self.gridLayout_8.addWidget(self.label_chatglm_max_length, 1, 0, 1, 1)
self.label_chatglm_temperature = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_temperature.setObjectName("label_chatglm_temperature")
self.gridLayout_8.addWidget(self.label_chatglm_temperature, 3, 0, 1, 1)
self.lineEdit_chatglm_temperature = QtWidgets.QLineEdit(self.groupBox_chatglm)
self.lineEdit_chatglm_temperature.setObjectName("lineEdit_chatglm_temperature")
self.gridLayout_8.addWidget(self.lineEdit_chatglm_temperature, 3, 1, 1, 1)
self.gridLayout_9.addLayout(self.gridLayout_8, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_chatglm, 17, 0, 1, 3)
self.label_chat_type = QtWidgets.QLabel(self.formWidget)
self.label_chat_type.setObjectName("label_chat_type")
self.gridLayout.addWidget(self.label_chat_type, 2, 0, 1, 1)
self.label_room_display_id = QtWidgets.QLabel(self.formWidget)
self.label_room_display_id.setObjectName("label_room_display_id")
self.gridLayout.addWidget(self.label_room_display_id, 1, 0, 1, 1)
self.label_before_prompt = QtWidgets.QLabel(self.formWidget)
self.label_before_prompt.setObjectName("label_before_prompt")
self.gridLayout.addWidget(self.label_before_prompt, 4, 0, 1, 1)
self.groupBox = QtWidgets.QGroupBox(self.formWidget)
self.groupBox.setObjectName("groupBox")
self.gridLayout_26 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_26.setObjectName("gridLayout_26")
self.gridLayout_25 = QtWidgets.QGridLayout()
self.gridLayout_25.setObjectName("gridLayout_25")
self.label_filter_max_char_len = QtWidgets.QLabel(self.groupBox)
self.label_filter_max_char_len.setObjectName("label_filter_max_char_len")
self.gridLayout_25.addWidget(self.label_filter_max_char_len, 4, 0, 1, 1)
self.label_filter_badwords_path = QtWidgets.QLabel(self.groupBox)
self.label_filter_badwords_path.setObjectName("label_filter_badwords_path")
self.gridLayout_25.addWidget(self.label_filter_badwords_path, 2, 0, 1, 1)
self.label_filter_max_len = QtWidgets.QLabel(self.groupBox)
self.label_filter_max_len.setObjectName("label_filter_max_len")
self.gridLayout_25.addWidget(self.label_filter_max_len, 3, 0, 1, 1)
self.lineEdit_filter_max_char_len = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_filter_max_char_len.setObjectName("lineEdit_filter_max_char_len")
self.gridLayout_25.addWidget(self.lineEdit_filter_max_char_len, 4, 1, 1, 1)
self.label_filter_before_must_str = QtWidgets.QLabel(self.groupBox)
self.label_filter_before_must_str.setObjectName("label_filter_before_must_str")
self.gridLayout_25.addWidget(self.label_filter_before_must_str, 0, 0, 1, 1)
self.lineEdit_filter_badwords_path = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_filter_badwords_path.setObjectName("lineEdit_filter_badwords_path")
self.gridLayout_25.addWidget(self.lineEdit_filter_badwords_path, 2, 1, 1, 1)
self.lineEdit_filter_max_len = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_filter_max_len.setObjectName("lineEdit_filter_max_len")
self.gridLayout_25.addWidget(self.lineEdit_filter_max_len, 3, 1, 1, 1)
self.label_filter_after_must_str = QtWidgets.QLabel(self.groupBox)
self.label_filter_after_must_str.setObjectName("label_filter_after_must_str")
self.gridLayout_25.addWidget(self.label_filter_after_must_str, 1, 0, 1, 1)
self.textEdit_filter_before_must_str = QtWidgets.QTextEdit(self.groupBox)
self.textEdit_filter_before_must_str.setObjectName("textEdit_filter_before_must_str")
self.gridLayout_25.addWidget(self.textEdit_filter_before_must_str, 0, 1, 1, 1)
self.textEdit_filter_after_must_str = QtWidgets.QTextEdit(self.groupBox)
self.textEdit_filter_after_must_str.setObjectName("textEdit_filter_after_must_str")
self.gridLayout_25.addWidget(self.textEdit_filter_after_must_str, 1, 1, 1, 1)
self.gridLayout_26.addLayout(self.gridLayout_25, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox, 11, 0, 1, 3)
self.comboBox_chat_type = QtWidgets.QComboBox(self.formWidget)
self.comboBox_chat_type.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.comboBox_chat_type.setObjectName("comboBox_chat_type")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.comboBox_chat_type.addItem("")
self.gridLayout.addWidget(self.comboBox_chat_type, 2, 1, 1, 1)
self.label_audio_synthesis_type = QtWidgets.QLabel(self.formWidget)
self.label_audio_synthesis_type.setObjectName("label_audio_synthesis_type")
self.gridLayout.addWidget(self.label_audio_synthesis_type, 10, 0, 1, 1)
self.groupBox_chatgpt = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_chatgpt.setObjectName("groupBox_chatgpt")
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_chatgpt)
self.gridLayout_5.setObjectName("gridLayout_5")
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.lineEdit_chatgpt_max_tokens = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_max_tokens.setObjectName("lineEdit_chatgpt_max_tokens")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_max_tokens, 2, 1, 1, 1)
self.label_chatgpt_model = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_model.setObjectName("label_chatgpt_model")
self.gridLayout_3.addWidget(self.label_chatgpt_model, 0, 0, 1, 1)
self.label_chatgpt_max_tokens = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_max_tokens.setObjectName("label_chatgpt_max_tokens")
self.gridLayout_3.addWidget(self.label_chatgpt_max_tokens, 2, 0, 1, 1)
self.lineEdit_chatgpt_presence_penalty = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_presence_penalty.setObjectName("lineEdit_chatgpt_presence_penalty")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_presence_penalty, 4, 1, 1, 1)
self.label_chatgpt_temperature = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_temperature.setObjectName("label_chatgpt_temperature")
self.gridLayout_3.addWidget(self.label_chatgpt_temperature, 1, 0, 1, 1)
self.label_chatgpt_top_p = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_top_p.setObjectName("label_chatgpt_top_p")
self.gridLayout_3.addWidget(self.label_chatgpt_top_p, 3, 0, 1, 1)
self.lineEdit_chatgpt_top_p = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_top_p.setObjectName("lineEdit_chatgpt_top_p")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_top_p, 3, 1, 1, 1)
self.lineEdit_chatgpt_temperature = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_temperature.setObjectName("lineEdit_chatgpt_temperature")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_temperature, 1, 1, 1, 1)
self.label_chatgpt_frequency_penalty = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_frequency_penalty.setObjectName("label_chatgpt_frequency_penalty")
self.gridLayout_3.addWidget(self.label_chatgpt_frequency_penalty, 5, 0, 1, 1)
self.lineEdit_chatgpt_frequency_penalty = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_frequency_penalty.setObjectName("lineEdit_chatgpt_frequency_penalty")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_frequency_penalty, 5, 1, 1, 1)
self.label_chatgpt_presence_penalty = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_presence_penalty.setObjectName("label_chatgpt_presence_penalty")
self.gridLayout_3.addWidget(self.label_chatgpt_presence_penalty, 4, 0, 1, 1)
self.label_chatgpt_preset = QtWidgets.QLabel(self.groupBox_chatgpt)
self.label_chatgpt_preset.setObjectName("label_chatgpt_preset")
self.gridLayout_3.addWidget(self.label_chatgpt_preset, 6, 0, 1, 1)
self.lineEdit_chatgpt_preset = QtWidgets.QLineEdit(self.groupBox_chatgpt)
self.lineEdit_chatgpt_preset.setObjectName("lineEdit_chatgpt_preset")
self.gridLayout_3.addWidget(self.lineEdit_chatgpt_preset, 6, 1, 1, 1)
self.comboBox_chatgpt_model = QtWidgets.QComboBox(self.groupBox_chatgpt)
self.comboBox_chatgpt_model.setObjectName("comboBox_chatgpt_model")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.comboBox_chatgpt_model.addItem("")
self.gridLayout_3.addWidget(self.comboBox_chatgpt_model, 0, 1, 1, 1)
self.gridLayout_5.addLayout(self.gridLayout_3, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_chatgpt, 14, 0, 2, 3)
self.comboBox_need_lang = QtWidgets.QComboBox(self.formWidget)
self.comboBox_need_lang.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.comboBox_need_lang.setObjectName("comboBox_need_lang")
self.comboBox_need_lang.addItem("")
self.comboBox_need_lang.addItem("")
self.comboBox_need_lang.addItem("")
self.comboBox_need_lang.addItem("")
self.gridLayout.addWidget(self.comboBox_need_lang, 3, 1, 1, 1)
self.comboBox_audio_synthesis_type = QtWidgets.QComboBox(self.formWidget)
self.comboBox_audio_synthesis_type.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.comboBox_audio_synthesis_type.setObjectName("comboBox_audio_synthesis_type")
self.comboBox_audio_synthesis_type.addItem("")
self.comboBox_audio_synthesis_type.addItem("")
self.comboBox_audio_synthesis_type.addItem("")
self.gridLayout.addWidget(self.comboBox_audio_synthesis_type, 10, 1, 1, 1)
self.comboBox_platform = QtWidgets.QComboBox(self.formWidget)
self.comboBox_platform.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.comboBox_platform.setObjectName("comboBox_platform")
self.comboBox_platform.addItem("")
self.comboBox_platform.addItem("")
self.comboBox_platform.addItem("")
self.gridLayout.addWidget(self.comboBox_platform, 0, 1, 1, 1)
self.groupBox_live2d = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_live2d.setObjectName("groupBox_live2d")
self.gridLayout_30 = QtWidgets.QGridLayout(self.groupBox_live2d)
self.gridLayout_30.setObjectName("gridLayout_30")
self.gridLayout_29 = QtWidgets.QGridLayout()
self.gridLayout_29.setObjectName("gridLayout_29")
self.label_live2d_enable = QtWidgets.QLabel(self.groupBox_live2d)
self.label_live2d_enable.setObjectName("label_live2d_enable")
self.gridLayout_29.addWidget(self.label_live2d_enable, 0, 0, 1, 1)
self.checkBox_live2d_enable = QtWidgets.QCheckBox(self.groupBox_live2d)
self.checkBox_live2d_enable.setObjectName("checkBox_live2d_enable")
self.gridLayout_29.addWidget(self.checkBox_live2d_enable, 0, 1, 1, 1)
self.label_live2d_port = QtWidgets.QLabel(self.groupBox_live2d)
self.label_live2d_port.setObjectName("label_live2d_port")
self.gridLayout_29.addWidget(self.label_live2d_port, 1, 0, 1, 1)
self.lineEdit_live2d_port = QtWidgets.QLineEdit(self.groupBox_live2d)
self.lineEdit_live2d_port.setObjectName("lineEdit_live2d_port")
self.gridLayout_29.addWidget(self.lineEdit_live2d_port, 1, 1, 1, 1)
self.gridLayout_29.setColumnStretch(0, 1)
self.gridLayout_29.setColumnStretch(1, 6)
self.gridLayout_30.addLayout(self.gridLayout_29, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_live2d, 12, 0, 1, 3)
self.label_commit_log_type = QtWidgets.QLabel(self.formWidget)
self.label_commit_log_type.setObjectName("label_commit_log_type")
self.gridLayout.addWidget(self.label_commit_log_type, 6, 0, 1, 1)
self.comboBox_commit_log_type = QtWidgets.QComboBox(self.formWidget)
self.comboBox_commit_log_type.setObjectName("comboBox_commit_log_type")
self.comboBox_commit_log_type.addItem("")
self.comboBox_commit_log_type.addItem("")
self.comboBox_commit_log_type.addItem("")
self.comboBox_commit_log_type.addItem("")
self.gridLayout.addWidget(self.comboBox_commit_log_type, 6, 1, 1, 1)
self.verticalLayout.addWidget(self.formWidget)
self.groupBox_chat_with_file = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_chat_with_file.setObjectName("groupBox_chat_with_file")
self.gridLayout_10 = QtWidgets.QGridLayout(self.groupBox_chat_with_file)
self.gridLayout_10.setObjectName("gridLayout_10")
self.gridLayout_11 = QtWidgets.QGridLayout()
self.gridLayout_11.setSpacing(6)
self.gridLayout_11.setObjectName("gridLayout_11")
self.lineEdit_chat_with_file_chunk_overlap = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_chunk_overlap.setObjectName("lineEdit_chat_with_file_chunk_overlap")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_chunk_overlap, 5, 1, 1, 1)
self.label_chat_with_file_chain_type = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_chain_type.setObjectName("label_chat_with_file_chain_type")
self.gridLayout_11.addWidget(self.label_chat_with_file_chain_type, 7, 0, 1, 1)
self.label_chat_with_file_data_path = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_data_path.setObjectName("label_chat_with_file_data_path")
self.gridLayout_11.addWidget(self.label_chat_with_file_data_path, 1, 0, 1, 1)
self.lineEdit_chat_with_file_chain_type = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_chain_type.setObjectName("lineEdit_chat_with_file_chain_type")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_chain_type, 7, 1, 1, 1)
self.label_chat_with_file_local_vector_embedding_model = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_local_vector_embedding_model.setObjectName("label_chat_with_file_local_vector_embedding_model")
self.gridLayout_11.addWidget(self.label_chat_with_file_local_vector_embedding_model, 6, 0, 1, 1)
self.lineEdit_chat_with_file_chunk_size = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_chunk_size.setObjectName("lineEdit_chat_with_file_chunk_size")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_chunk_size, 3, 1, 1, 1)
self.label_chat_with_file_show_token_cost = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_show_token_cost.setObjectName("label_chat_with_file_show_token_cost")
self.gridLayout_11.addWidget(self.label_chat_with_file_show_token_cost, 10, 0, 1, 1)
self.checkBox_chat_with_file_show_token_cost = QtWidgets.QCheckBox(self.groupBox_chat_with_file)
self.checkBox_chat_with_file_show_token_cost.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.checkBox_chat_with_file_show_token_cost.setObjectName("checkBox_chat_with_file_show_token_cost")
self.gridLayout_11.addWidget(self.checkBox_chat_with_file_show_token_cost, 10, 1, 1, 1)
self.lineEdit_chat_with_file_data_path = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_data_path.setObjectName("lineEdit_chat_with_file_data_path")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_data_path, 1, 1, 1, 1)
self.label_chat_with_file_chunk_size = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_chunk_size.setObjectName("label_chat_with_file_chunk_size")
self.gridLayout_11.addWidget(self.label_chat_with_file_chunk_size, 3, 0, 1, 1)
self.label_chat_with_file_chunk_overlap = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_chunk_overlap.setObjectName("label_chat_with_file_chunk_overlap")
self.gridLayout_11.addWidget(self.label_chat_with_file_chunk_overlap, 5, 0, 1, 1)
self.label_chat_with_file_question_prompt = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_question_prompt.setObjectName("label_chat_with_file_question_prompt")
self.gridLayout_11.addWidget(self.label_chat_with_file_question_prompt, 8, 0, 1, 1)
self.lineEdit_chat_with_file_separator = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_separator.setObjectName("lineEdit_chat_with_file_separator")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_separator, 2, 1, 1, 1)
self.lineEdit_chat_with_file_question_prompt = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_question_prompt.setObjectName("lineEdit_chat_with_file_question_prompt")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_question_prompt, 8, 1, 1, 1)
self.label_chat_with_file_separator = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_separator.setObjectName("label_chat_with_file_separator")
self.gridLayout_11.addWidget(self.label_chat_with_file_separator, 2, 0, 1, 1)
self.label_chat_with_file_chat_mode = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_chat_mode.setObjectName("label_chat_with_file_chat_mode")
self.gridLayout_11.addWidget(self.label_chat_with_file_chat_mode, 0, 0, 1, 1)
self.label_chat_with_file_local_max_query = QtWidgets.QLabel(self.groupBox_chat_with_file)
self.label_chat_with_file_local_max_query.setObjectName("label_chat_with_file_local_max_query")
self.gridLayout_11.addWidget(self.label_chat_with_file_local_max_query, 9, 0, 1, 1)
self.lineEdit_chat_with_file_local_max_query = QtWidgets.QLineEdit(self.groupBox_chat_with_file)
self.lineEdit_chat_with_file_local_max_query.setObjectName("lineEdit_chat_with_file_local_max_query")
self.gridLayout_11.addWidget(self.lineEdit_chat_with_file_local_max_query, 9, 1, 1, 1)
self.comboBox_chat_with_file_chat_mode = QtWidgets.QComboBox(self.groupBox_chat_with_file)
self.comboBox_chat_with_file_chat_mode.setObjectName("comboBox_chat_with_file_chat_mode")
self.comboBox_chat_with_file_chat_mode.addItem("")
self.comboBox_chat_with_file_chat_mode.addItem("")
self.comboBox_chat_with_file_chat_mode.addItem("")
self.gridLayout_11.addWidget(self.comboBox_chat_with_file_chat_mode, 0, 1, 1, 1)
self.comboBox_chat_with_file_local_vector_embedding_model = QtWidgets.QComboBox(self.groupBox_chat_with_file)
self.comboBox_chat_with_file_local_vector_embedding_model.setObjectName("comboBox_chat_with_file_local_vector_embedding_model")
self.comboBox_chat_with_file_local_vector_embedding_model.addItem("")
self.comboBox_chat_with_file_local_vector_embedding_model.addItem("")
self.gridLayout_11.addWidget(self.comboBox_chat_with_file_local_vector_embedding_model, 6, 1, 1, 1)
self.gridLayout_10.addLayout(self.gridLayout_11, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_chat_with_file)
self.groupBox_text_generation_webui = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_text_generation_webui.setObjectName("groupBox_text_generation_webui")
self.gridLayout_28 = QtWidgets.QGridLayout(self.groupBox_text_generation_webui)
self.gridLayout_28.setObjectName("gridLayout_28")
self.gridLayout_27 = QtWidgets.QGridLayout()
self.gridLayout_27.setObjectName("gridLayout_27")
self.lineEdit_text_generation_webui_api_ip_port = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_api_ip_port.setObjectName("lineEdit_text_generation_webui_api_ip_port")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_api_ip_port, 1, 1, 1, 1)
self.lineEdit_text_generation_webui_mode = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_mode.setObjectName("lineEdit_text_generation_webui_mode")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_mode, 3, 1, 1, 1)
self.lineEdit_text_generation_webui_instruction_template = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_instruction_template.setObjectName("lineEdit_text_generation_webui_instruction_template")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_instruction_template, 5, 1, 1, 1)
self.lineEdit_text_generation_webui_max_new_tokens = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_max_new_tokens.setObjectName("lineEdit_text_generation_webui_max_new_tokens")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_max_new_tokens, 2, 1, 1, 1)
self.label_text_generation_webui_max_new_tokens = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_max_new_tokens.setObjectName("label_text_generation_webui_max_new_tokens")
self.gridLayout_27.addWidget(self.label_text_generation_webui_max_new_tokens, 2, 0, 1, 1)
self.label_text_generation_webui_character = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_character.setObjectName("label_text_generation_webui_character")
self.gridLayout_27.addWidget(self.label_text_generation_webui_character, 4, 0, 1, 1)
self.label_text_generation_webui_api_ip_port = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_api_ip_port.setObjectName("label_text_generation_webui_api_ip_port")
self.gridLayout_27.addWidget(self.label_text_generation_webui_api_ip_port, 1, 0, 1, 1)
self.lineEdit_text_generation_webui_character = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_character.setObjectName("lineEdit_text_generation_webui_character")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_character, 4, 1, 1, 1)
self.label_text_generation_webui_instruction_template = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_instruction_template.setObjectName("label_text_generation_webui_instruction_template")
self.gridLayout_27.addWidget(self.label_text_generation_webui_instruction_template, 5, 0, 1, 1)
self.label_text_generation_webui_mode = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_mode.setObjectName("label_text_generation_webui_mode")
self.gridLayout_27.addWidget(self.label_text_generation_webui_mode, 3, 0, 1, 1)
self.label_text_generation_webui_your_name = QtWidgets.QLabel(self.groupBox_text_generation_webui)
self.label_text_generation_webui_your_name.setObjectName("label_text_generation_webui_your_name")
self.gridLayout_27.addWidget(self.label_text_generation_webui_your_name, 6, 0, 1, 1)
self.lineEdit_text_generation_webui_your_name = QtWidgets.QLineEdit(self.groupBox_text_generation_webui)
self.lineEdit_text_generation_webui_your_name.setObjectName("lineEdit_text_generation_webui_your_name")
self.gridLayout_27.addWidget(self.lineEdit_text_generation_webui_your_name, 6, 1, 1, 1)
self.gridLayout_28.addLayout(self.gridLayout_27, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_text_generation_webui)
self.groupBox_chatterbot = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_chatterbot.setObjectName("groupBox_chatterbot")
self.gridLayout_12 = QtWidgets.QGridLayout(self.groupBox_chatterbot)
self.gridLayout_12.setObjectName("gridLayout_12")
self.gridLayout_13 = QtWidgets.QGridLayout()
self.gridLayout_13.setObjectName("gridLayout_13")
self.lineEdit_chatterbot_db_path = QtWidgets.QLineEdit(self.groupBox_chatterbot)
self.lineEdit_chatterbot_db_path.setObjectName("lineEdit_chatterbot_db_path")
self.gridLayout_13.addWidget(self.lineEdit_chatterbot_db_path, 1, 1, 1, 1)
self.label_chatterbot_name = QtWidgets.QLabel(self.groupBox_chatterbot)
self.label_chatterbot_name.setObjectName("label_chatterbot_name")
self.gridLayout_13.addWidget(self.label_chatterbot_name, 0, 0, 1, 1)
self.label_chatterbot_db_path = QtWidgets.QLabel(self.groupBox_chatterbot)
self.label_chatterbot_db_path.setObjectName("label_chatterbot_db_path")
self.gridLayout_13.addWidget(self.label_chatterbot_db_path, 1, 0, 1, 1)
self.lineEdit_chatterbot_name = QtWidgets.QLineEdit(self.groupBox_chatterbot)
self.lineEdit_chatterbot_name.setObjectName("lineEdit_chatterbot_name")
self.gridLayout_13.addWidget(self.lineEdit_chatterbot_name, 0, 1, 1, 1)
self.gridLayout_12.addLayout(self.gridLayout_13, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_chatterbot)
self.groupBox_edge_tts = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_edge_tts.setObjectName("groupBox_edge_tts")
self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_edge_tts)
self.gridLayout_14.setObjectName("gridLayout_14")
self.gridLayout_15 = QtWidgets.QGridLayout()
self.gridLayout_15.setObjectName("gridLayout_15")
self.lineEdit_edge_tts_rate = QtWidgets.QLineEdit(self.groupBox_edge_tts)
self.lineEdit_edge_tts_rate.setObjectName("lineEdit_edge_tts_rate")
self.gridLayout_15.addWidget(self.lineEdit_edge_tts_rate, 1, 1, 1, 1)
self.label_edge_tts_rate = QtWidgets.QLabel(self.groupBox_edge_tts)
self.label_edge_tts_rate.setObjectName("label_edge_tts_rate")
self.gridLayout_15.addWidget(self.label_edge_tts_rate, 1, 0, 1, 1)
self.label_edge_tts_voice = QtWidgets.QLabel(self.groupBox_edge_tts)
self.label_edge_tts_voice.setObjectName("label_edge_tts_voice")
self.gridLayout_15.addWidget(self.label_edge_tts_voice, 0, 0, 1, 1)
self.label_edge_tts_volume = QtWidgets.QLabel(self.groupBox_edge_tts)
self.label_edge_tts_volume.setObjectName("label_edge_tts_volume")
self.gridLayout_15.addWidget(self.label_edge_tts_volume, 2, 0, 1, 1)
self.lineEdit_edge_tts_volume = QtWidgets.QLineEdit(self.groupBox_edge_tts)
self.lineEdit_edge_tts_volume.setObjectName("lineEdit_edge_tts_volume")
self.gridLayout_15.addWidget(self.lineEdit_edge_tts_volume, 2, 1, 1, 1)
self.comboBox_edge_tts_voice = QtWidgets.QComboBox(self.groupBox_edge_tts)
self.comboBox_edge_tts_voice.setMaximumSize(QtCore.QSize(16777215, 100))
self.comboBox_edge_tts_voice.setObjectName("comboBox_edge_tts_voice")
self.gridLayout_15.addWidget(self.comboBox_edge_tts_voice, 0, 1, 1, 1)
self.gridLayout_14.addLayout(self.gridLayout_15, 0, 1, 1, 1)
self.verticalLayout.addWidget(self.groupBox_edge_tts)
self.groupBox_vits_fast = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_vits_fast.setObjectName("groupBox_vits_fast")
self.gridLayout_23 = QtWidgets.QGridLayout(self.groupBox_vits_fast)
self.gridLayout_23.setObjectName("gridLayout_23")
self.gridLayout_24 = QtWidgets.QGridLayout()
self.gridLayout_24.setObjectName("gridLayout_24")
self.label_vits_config_path = QtWidgets.QLabel(self.groupBox_vits_fast)
self.label_vits_config_path.setObjectName("label_vits_config_path")
self.gridLayout_24.addWidget(self.label_vits_config_path, 0, 0, 1, 1)
self.lineEdit_vits_character = QtWidgets.QLineEdit(self.groupBox_vits_fast)
self.lineEdit_vits_character.setObjectName("lineEdit_vits_character")
self.gridLayout_24.addWidget(self.lineEdit_vits_character, 2, 2, 1, 1)
self.label_vits_character = QtWidgets.QLabel(self.groupBox_vits_fast)
self.label_vits_character.setObjectName("label_vits_character")
self.gridLayout_24.addWidget(self.label_vits_character, 2, 0, 1, 1)
self.lineEdit_vits_api_ip_port = QtWidgets.QLineEdit(self.groupBox_vits_fast)
self.lineEdit_vits_api_ip_port.setObjectName("lineEdit_vits_api_ip_port")
self.gridLayout_24.addWidget(self.lineEdit_vits_api_ip_port, 1, 2, 1, 1)
self.lineEdit_vits_config_path = QtWidgets.QLineEdit(self.groupBox_vits_fast)
self.lineEdit_vits_config_path.setObjectName("lineEdit_vits_config_path")
self.gridLayout_24.addWidget(self.lineEdit_vits_config_path, 0, 2, 1, 1)
self.label_vits_api_ip_port = QtWidgets.QLabel(self.groupBox_vits_fast)
self.label_vits_api_ip_port.setObjectName("label_vits_api_ip_port")
self.gridLayout_24.addWidget(self.label_vits_api_ip_port, 1, 0, 1, 1)
self.label_vits_speed = QtWidgets.QLabel(self.groupBox_vits_fast)
self.label_vits_speed.setObjectName("label_vits_speed")
self.gridLayout_24.addWidget(self.label_vits_speed, 3, 0, 1, 1)
self.lineEdit_vits_speed = QtWidgets.QLineEdit(self.groupBox_vits_fast)
self.lineEdit_vits_speed.setObjectName("lineEdit_vits_speed")
self.gridLayout_24.addWidget(self.lineEdit_vits_speed, 3, 2, 1, 1)
self.gridLayout_23.addLayout(self.gridLayout_24, 0, 1, 1, 1)
self.verticalLayout.addWidget(self.groupBox_vits_fast)
self.groupBox_elevenlabs = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_elevenlabs.setObjectName("groupBox_elevenlabs")
self.gridLayout_16 = QtWidgets.QGridLayout(self.groupBox_elevenlabs)
self.gridLayout_16.setObjectName("gridLayout_16")
self.gridLayout_17 = QtWidgets.QGridLayout()
self.gridLayout_17.setObjectName("gridLayout_17")
self.lineEdit_elevenlabs_api_key = QtWidgets.QLineEdit(self.groupBox_elevenlabs)
self.lineEdit_elevenlabs_api_key.setObjectName("lineEdit_elevenlabs_api_key")
self.gridLayout_17.addWidget(self.lineEdit_elevenlabs_api_key, 0, 1, 1, 1)
self.label_elevenlabs_voice = QtWidgets.QLabel(self.groupBox_elevenlabs)
self.label_elevenlabs_voice.setObjectName("label_elevenlabs_voice")
self.gridLayout_17.addWidget(self.label_elevenlabs_voice, 1, 0, 1, 1)
self.lineEdit_elevenlabs_voice = QtWidgets.QLineEdit(self.groupBox_elevenlabs)
self.lineEdit_elevenlabs_voice.setObjectName("lineEdit_elevenlabs_voice")
self.gridLayout_17.addWidget(self.lineEdit_elevenlabs_voice, 1, 1, 1, 1)
self.label_elevenlabs_api_key = QtWidgets.QLabel(self.groupBox_elevenlabs)
self.label_elevenlabs_api_key.setObjectName("label_elevenlabs_api_key")
self.gridLayout_17.addWidget(self.label_elevenlabs_api_key, 0, 0, 1, 1)
self.label_elevenlabs_model = QtWidgets.QLabel(self.groupBox_elevenlabs)
self.label_elevenlabs_model.setObjectName("label_elevenlabs_model")
self.gridLayout_17.addWidget(self.label_elevenlabs_model, 2, 0, 1, 1)
self.lineEdit_elevenlabs_model = QtWidgets.QLineEdit(self.groupBox_elevenlabs)
self.lineEdit_elevenlabs_model.setObjectName("lineEdit_elevenlabs_model")
self.gridLayout_17.addWidget(self.lineEdit_elevenlabs_model, 2, 1, 1, 1)
self.gridLayout_16.addLayout(self.gridLayout_17, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_elevenlabs)
self.groupBox_choose_song = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_choose_song.setObjectName("groupBox_choose_song")
self.gridLayout_34 = QtWidgets.QGridLayout(self.groupBox_choose_song)
self.gridLayout_34.setObjectName("gridLayout_34")
self.gridLayout_33 = QtWidgets.QGridLayout()
self.gridLayout_33.setObjectName("gridLayout_33")
self.label_choose_song_start_cmd = QtWidgets.QLabel(self.groupBox_choose_song)
self.label_choose_song_start_cmd.setObjectName("label_choose_song_start_cmd")
self.gridLayout_33.addWidget(self.label_choose_song_start_cmd, 1, 0, 1, 1)
self.lineEdit_choose_song_song_path = QtWidgets.QLineEdit(self.groupBox_choose_song)
self.lineEdit_choose_song_song_path.setObjectName("lineEdit_choose_song_song_path")
self.gridLayout_33.addWidget(self.lineEdit_choose_song_song_path, 3, 1, 1, 1)
self.label_choose_song_stop_cmd = QtWidgets.QLabel(self.groupBox_choose_song)
self.label_choose_song_stop_cmd.setObjectName("label_choose_song_stop_cmd")
self.gridLayout_33.addWidget(self.label_choose_song_stop_cmd, 2, 0, 1, 1)
self.lineEdit_choose_song_start_cmd = QtWidgets.QLineEdit(self.groupBox_choose_song)
self.lineEdit_choose_song_start_cmd.setObjectName("lineEdit_choose_song_start_cmd")
self.gridLayout_33.addWidget(self.lineEdit_choose_song_start_cmd, 1, 1, 1, 1)
self.label_choose_song_enable = QtWidgets.QLabel(self.groupBox_choose_song)
self.label_choose_song_enable.setObjectName("label_choose_song_enable")
self.gridLayout_33.addWidget(self.label_choose_song_enable, 0, 0, 1, 1)
self.label_choose_song_song_path = QtWidgets.QLabel(self.groupBox_choose_song)
self.label_choose_song_song_path.setObjectName("label_choose_song_song_path")
self.gridLayout_33.addWidget(self.label_choose_song_song_path, 3, 0, 1, 1)
self.checkBox_choose_song_enable = QtWidgets.QCheckBox(self.groupBox_choose_song)
self.checkBox_choose_song_enable.setObjectName("checkBox_choose_song_enable")
self.gridLayout_33.addWidget(self.checkBox_choose_song_enable, 0, 1, 1, 1)
self.lineEdit_choose_song_stop_cmd = QtWidgets.QLineEdit(self.groupBox_choose_song)
self.lineEdit_choose_song_stop_cmd.setObjectName("lineEdit_choose_song_stop_cmd")
self.gridLayout_33.addWidget(self.lineEdit_choose_song_stop_cmd, 2, 1, 1, 1)
self.label_choose_song_match_fail_copy = QtWidgets.QLabel(self.groupBox_choose_song)
self.label_choose_song_match_fail_copy.setObjectName("label_choose_song_match_fail_copy")
self.gridLayout_33.addWidget(self.label_choose_song_match_fail_copy, 4, 0, 1, 1)
self.lineEdit_choose_song_match_fail_copy = QtWidgets.QLineEdit(self.groupBox_choose_song)
self.lineEdit_choose_song_match_fail_copy.setObjectName("lineEdit_choose_song_match_fail_copy")
self.gridLayout_33.addWidget(self.lineEdit_choose_song_match_fail_copy, 4, 1, 1, 1)
self.gridLayout_34.addLayout(self.gridLayout_33, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_choose_song)
self.groupBox_so_vits_svc = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_so_vits_svc.setObjectName("groupBox_so_vits_svc")
self.gridLayout_36 = QtWidgets.QGridLayout(self.groupBox_so_vits_svc)
self.gridLayout_36.setObjectName("gridLayout_36")
self.gridLayout_35 = QtWidgets.QGridLayout()
self.gridLayout_35.setObjectName("gridLayout_35")
self.checkBox_so_vits_svc_enable = QtWidgets.QCheckBox(self.groupBox_so_vits_svc)
self.checkBox_so_vits_svc_enable.setObjectName("checkBox_so_vits_svc_enable")
self.gridLayout_35.addWidget(self.checkBox_so_vits_svc_enable, 0, 1, 1, 1)
self.lineEdit_so_vits_svc_api_ip_port = QtWidgets.QLineEdit(self.groupBox_so_vits_svc)
self.lineEdit_so_vits_svc_api_ip_port.setObjectName("lineEdit_so_vits_svc_api_ip_port")
self.gridLayout_35.addWidget(self.lineEdit_so_vits_svc_api_ip_port, 2, 1, 1, 1)
self.label_so_vits_svc_config_path = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_config_path.setObjectName("label_so_vits_svc_config_path")
self.gridLayout_35.addWidget(self.label_so_vits_svc_config_path, 1, 0, 1, 1)
self.label_so_vits_svc_api_ip_port = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_api_ip_port.setObjectName("label_so_vits_svc_api_ip_port")
self.gridLayout_35.addWidget(self.label_so_vits_svc_api_ip_port, 2, 0, 1, 1)
self.lineEdit_so_vits_svc_tran = QtWidgets.QLineEdit(self.groupBox_so_vits_svc)
self.lineEdit_so_vits_svc_tran.setObjectName("lineEdit_so_vits_svc_tran")
self.gridLayout_35.addWidget(self.lineEdit_so_vits_svc_tran, 4, 1, 1, 1)
self.lineEdit_so_vits_svc_config_path = QtWidgets.QLineEdit(self.groupBox_so_vits_svc)
self.lineEdit_so_vits_svc_config_path.setObjectName("lineEdit_so_vits_svc_config_path")
self.gridLayout_35.addWidget(self.lineEdit_so_vits_svc_config_path, 1, 1, 1, 1)
self.label_so_vits_svc_enable = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_enable.setObjectName("label_so_vits_svc_enable")
self.gridLayout_35.addWidget(self.label_so_vits_svc_enable, 0, 0, 1, 1)
self.label_so_vits_svc_spk = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_spk.setObjectName("label_so_vits_svc_spk")
self.gridLayout_35.addWidget(self.label_so_vits_svc_spk, 3, 0, 1, 1)
self.lineEdit_so_vits_svc_spk = QtWidgets.QLineEdit(self.groupBox_so_vits_svc)
self.lineEdit_so_vits_svc_spk.setObjectName("lineEdit_so_vits_svc_spk")
self.gridLayout_35.addWidget(self.lineEdit_so_vits_svc_spk, 3, 1, 1, 1)
self.label_so_vits_svc_tran = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_tran.setObjectName("label_so_vits_svc_tran")
self.gridLayout_35.addWidget(self.label_so_vits_svc_tran, 4, 0, 1, 1)
self.label_so_vits_svc_wav_format = QtWidgets.QLabel(self.groupBox_so_vits_svc)
self.label_so_vits_svc_wav_format.setObjectName("label_so_vits_svc_wav_format")
self.gridLayout_35.addWidget(self.label_so_vits_svc_wav_format, 5, 0, 1, 1)
self.lineEdit_so_vits_svc_wav_format = QtWidgets.QLineEdit(self.groupBox_so_vits_svc)
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)
self.verticalLayout.addWidget(self.groupBox_so_vits_svc)
self.groupBox_sd = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_sd.setObjectName("groupBox_sd")
self.gridLayout_32 = QtWidgets.QGridLayout(self.groupBox_sd)
self.gridLayout_32.setObjectName("gridLayout_32")
self.gridLayout_31 = QtWidgets.QGridLayout()
self.gridLayout_31.setObjectName("gridLayout_31")
self.label_sd_seed = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_seed.setObjectName("label_sd_seed")
self.gridLayout_31.addWidget(self.label_sd_seed, 5, 0, 1, 1)
self.label_sd_hr_resize_y = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_hr_resize_y.setObjectName("label_sd_hr_resize_y")
self.gridLayout_31.addWidget(self.label_sd_hr_resize_y, 10, 0, 1, 1)
self.lineEdit_sd_hr_resize_x = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_hr_resize_x.setObjectName("lineEdit_sd_hr_resize_x")
self.gridLayout_31.addWidget(self.lineEdit_sd_hr_resize_x, 9, 1, 1, 1)
self.label_sd_enable_hr = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_enable_hr.setObjectName("label_sd_enable_hr")
self.gridLayout_31.addWidget(self.label_sd_enable_hr, 11, 0, 1, 1)
self.label_sd_styles = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_styles.setObjectName("label_sd_styles")
self.gridLayout_31.addWidget(self.label_sd_styles, 6, 0, 1, 1)
self.label_sd_ip = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_ip.setObjectName("label_sd_ip")
self.gridLayout_31.addWidget(self.label_sd_ip, 2, 0, 1, 1)
self.lineEdit_sd_steps = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_steps.setObjectName("lineEdit_sd_steps")
self.gridLayout_31.addWidget(self.lineEdit_sd_steps, 8, 1, 1, 1)
self.lineEdit_sd_trigger = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_trigger.setObjectName("lineEdit_sd_trigger")
self.gridLayout_31.addWidget(self.lineEdit_sd_trigger, 1, 1, 1, 1)
self.lineEdit_sd_port = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_port.setObjectName("lineEdit_sd_port")
self.gridLayout_31.addWidget(self.lineEdit_sd_port, 3, 1, 1, 1)
self.label_sd_negative_prompt = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_negative_prompt.setObjectName("label_sd_negative_prompt")
self.gridLayout_31.addWidget(self.label_sd_negative_prompt, 4, 0, 1, 1)
self.label_sd_hr_resize_x = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_hr_resize_x.setObjectName("label_sd_hr_resize_x")
self.gridLayout_31.addWidget(self.label_sd_hr_resize_x, 9, 0, 1, 1)
self.label_sd_port = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_port.setObjectName("label_sd_port")
self.gridLayout_31.addWidget(self.label_sd_port, 3, 0, 1, 1)
self.label_sd_hr_scale = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_hr_scale.setObjectName("label_sd_hr_scale")
self.gridLayout_31.addWidget(self.label_sd_hr_scale, 12, 0, 1, 1)
self.label_sd_hr_second_pass_steps = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_hr_second_pass_steps.setObjectName("label_sd_hr_second_pass_steps")
self.gridLayout_31.addWidget(self.label_sd_hr_second_pass_steps, 13, 0, 1, 1)
self.lineEdit_sd_cfg_scale = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_cfg_scale.setObjectName("lineEdit_sd_cfg_scale")
self.gridLayout_31.addWidget(self.lineEdit_sd_cfg_scale, 7, 1, 1, 1)
self.label_sd_cfg_scale = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_cfg_scale.setObjectName("label_sd_cfg_scale")
self.gridLayout_31.addWidget(self.label_sd_cfg_scale, 7, 0, 1, 1)
self.lineEdit_sd_negative_prompt = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_negative_prompt.setObjectName("lineEdit_sd_negative_prompt")
self.gridLayout_31.addWidget(self.lineEdit_sd_negative_prompt, 4, 1, 1, 1)
self.lineEdit_sd_hr_scale = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_hr_scale.setObjectName("lineEdit_sd_hr_scale")
self.gridLayout_31.addWidget(self.lineEdit_sd_hr_scale, 12, 1, 1, 1)
self.label_sd_enable = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_enable.setObjectName("label_sd_enable")
self.gridLayout_31.addWidget(self.label_sd_enable, 0, 0, 1, 1)
self.textEdit_sd_styles = QtWidgets.QTextEdit(self.groupBox_sd)
self.textEdit_sd_styles.setObjectName("textEdit_sd_styles")
self.gridLayout_31.addWidget(self.textEdit_sd_styles, 6, 1, 1, 1)
self.label_sd_trigger = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_trigger.setObjectName("label_sd_trigger")
self.gridLayout_31.addWidget(self.label_sd_trigger, 1, 0, 1, 1)
self.lineEdit_sd_hr_second_pass_steps = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_hr_second_pass_steps.setObjectName("lineEdit_sd_hr_second_pass_steps")
self.gridLayout_31.addWidget(self.lineEdit_sd_hr_second_pass_steps, 13, 1, 1, 1)
self.lineEdit_sd_hr_resize_y = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_hr_resize_y.setObjectName("lineEdit_sd_hr_resize_y")
self.gridLayout_31.addWidget(self.lineEdit_sd_hr_resize_y, 10, 1, 1, 1)
self.lineEdit_sd_seed = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_seed.setObjectName("lineEdit_sd_seed")
self.gridLayout_31.addWidget(self.lineEdit_sd_seed, 5, 1, 1, 1)
self.checkBox_sd_enable_hr = QtWidgets.QCheckBox(self.groupBox_sd)
self.checkBox_sd_enable_hr.setObjectName("checkBox_sd_enable_hr")
self.gridLayout_31.addWidget(self.checkBox_sd_enable_hr, 11, 1, 1, 1)
self.checkBox_sd_enable = QtWidgets.QCheckBox(self.groupBox_sd)
self.checkBox_sd_enable.setObjectName("checkBox_sd_enable")
self.gridLayout_31.addWidget(self.checkBox_sd_enable, 0, 1, 1, 1)
self.lineEdit_sd_ip = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_ip.setObjectName("lineEdit_sd_ip")
self.gridLayout_31.addWidget(self.lineEdit_sd_ip, 2, 1, 1, 1)
self.label_sd_steps = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_steps.setObjectName("label_sd_steps")
self.gridLayout_31.addWidget(self.label_sd_steps, 8, 0, 1, 1)
self.label_sd_denoising_strength = QtWidgets.QLabel(self.groupBox_sd)
self.label_sd_denoising_strength.setObjectName("label_sd_denoising_strength")
self.gridLayout_31.addWidget(self.label_sd_denoising_strength, 14, 0, 1, 1)
self.lineEdit_sd_denoising_strength = QtWidgets.QLineEdit(self.groupBox_sd)
self.lineEdit_sd_denoising_strength.setObjectName("lineEdit_sd_denoising_strength")
self.gridLayout_31.addWidget(self.lineEdit_sd_denoising_strength, 14, 1, 1, 1)
self.gridLayout_32.addLayout(self.gridLayout_31, 0, 0, 1, 1)
self.verticalLayout.addWidget(self.groupBox_sd)
self.groupBox_header = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_header.setObjectName("groupBox_header")
self.gridLayout_18 = QtWidgets.QGridLayout(self.groupBox_header)
self.gridLayout_18.setObjectName("gridLayout_18")
self.gridLayout_19 = QtWidgets.QGridLayout()
self.gridLayout_19.setObjectName("gridLayout_19")
self.label_header_useragent = QtWidgets.QLabel(self.groupBox_header)
self.label_header_useragent.setObjectName("label_header_useragent")
self.gridLayout_19.addWidget(self.label_header_useragent, 0, 0, 1, 1)
self.lineEdit_header_useragent = QtWidgets.QLineEdit(self.groupBox_header)
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)
self.verticalLayout.addWidget(self.groupBox_header)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.gridLayout_21.addWidget(self.scrollArea, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page)
self.page_2 = QtWidgets.QWidget()
self.page_2.setObjectName("page_2")
self.gridLayout_22 = QtWidgets.QGridLayout(self.page_2)
self.gridLayout_22.setObjectName("gridLayout_22")
self.textBrowser = QtWidgets.QTextBrowser(self.page_2)
self.textBrowser.setStyleSheet("font: 12pt \"仿宋\";\n"
"")
self.textBrowser.setObjectName("textBrowser")
self.gridLayout_22.addWidget(self.textBrowser, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_2)
self.page_3 = QtWidgets.QWidget()
self.page_3.setObjectName("page_3")
self.gridLayout_38 = QtWidgets.QGridLayout(self.page_3)
self.gridLayout_38.setObjectName("gridLayout_38")
self.groupBox_copywriting = QtWidgets.QGroupBox(self.page_3)
self.groupBox_copywriting.setObjectName("groupBox_copywriting")
self.gridLayout_37 = QtWidgets.QGridLayout(self.groupBox_copywriting)
self.gridLayout_37.setObjectName("gridLayout_37")
self.label_copywriting_audio_list = QtWidgets.QLabel(self.groupBox_copywriting)
self.label_copywriting_audio_list.setLayoutDirection(QtCore.Qt.LeftToRight)
self.label_copywriting_audio_list.setStyleSheet("font: 80 12pt \"微软雅黑\";")
self.label_copywriting_audio_list.setObjectName("label_copywriting_audio_list")
self.gridLayout_37.addWidget(self.label_copywriting_audio_list, 1, 5, 1, 1)
self.textEdit_copywriting_audio_list = QtWidgets.QTextEdit(self.groupBox_copywriting)
self.textEdit_copywriting_audio_list.setReadOnly(True)
self.textEdit_copywriting_audio_list.setObjectName("textEdit_copywriting_audio_list")
self.gridLayout_37.addWidget(self.textEdit_copywriting_audio_list, 1, 7, 1, 2)
self.label_copywriting_select = QtWidgets.QLabel(self.groupBox_copywriting)
self.label_copywriting_select.setStyleSheet("font: 80 12pt \"微软雅黑\";")
self.label_copywriting_select.setObjectName("label_copywriting_select")
self.gridLayout_37.addWidget(self.label_copywriting_select, 2, 0, 1, 1)
self.textEdit_copywriting_list = QtWidgets.QTextEdit(self.groupBox_copywriting)
self.textEdit_copywriting_list.setReadOnly(True)
self.textEdit_copywriting_list.setObjectName("textEdit_copywriting_list")
self.gridLayout_37.addWidget(self.textEdit_copywriting_list, 0, 1, 1, 8)
self.pushButton_copywriting_loop_play = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_loop_play.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_loop_play.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_loop_play.setObjectName("pushButton_copywriting_loop_play")
self.gridLayout_37.addWidget(self.pushButton_copywriting_loop_play, 7, 7, 1, 1)
self.pushButton_copywriting_synthetic_audio = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_synthetic_audio.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_synthetic_audio.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_synthetic_audio.setObjectName("pushButton_copywriting_synthetic_audio")
self.gridLayout_37.addWidget(self.pushButton_copywriting_synthetic_audio, 7, 5, 1, 1)
self.textEdit_copywriting_edit = QtWidgets.QTextEdit(self.groupBox_copywriting)
self.textEdit_copywriting_edit.setObjectName("textEdit_copywriting_edit")
self.gridLayout_37.addWidget(self.textEdit_copywriting_edit, 3, 1, 4, 8)
self.lineEdit_copywriting_select = QtWidgets.QLineEdit(self.groupBox_copywriting)
self.lineEdit_copywriting_select.setStyleSheet("height:50px;")
self.lineEdit_copywriting_select.setObjectName("lineEdit_copywriting_select")
self.gridLayout_37.addWidget(self.lineEdit_copywriting_select, 2, 1, 1, 5)
self.pushButton_copywriting_pause_play = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_pause_play.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_pause_play.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_pause_play.setObjectName("pushButton_copywriting_pause_play")
self.gridLayout_37.addWidget(self.pushButton_copywriting_pause_play, 7, 8, 1, 1)
self.label_copywriting_edit = QtWidgets.QLabel(self.groupBox_copywriting)
self.label_copywriting_edit.setStyleSheet("font: 80 12pt \"微软雅黑\";")
self.label_copywriting_edit.setObjectName("label_copywriting_edit")
self.gridLayout_37.addWidget(self.label_copywriting_edit, 4, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem, 7, 0, 1, 2)
self.label_copywriting_play_list = QtWidgets.QLabel(self.groupBox_copywriting)
self.label_copywriting_play_list.setStyleSheet("font: 80 12pt \"微软雅黑\";")
self.label_copywriting_play_list.setObjectName("label_copywriting_play_list")
self.gridLayout_37.addWidget(self.label_copywriting_play_list, 1, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_37.addItem(spacerItem1, 7, 2, 1, 1)
self.label_copywriting_list = QtWidgets.QLabel(self.groupBox_copywriting)
self.label_copywriting_list.setStyleSheet("font: 80 12pt \"微软雅黑\";")
self.label_copywriting_list.setObjectName("label_copywriting_list")
self.gridLayout_37.addWidget(self.label_copywriting_list, 0, 0, 1, 1)
self.textEdit_copywriting_play_list = QtWidgets.QTextEdit(self.groupBox_copywriting)
self.textEdit_copywriting_play_list.setObjectName("textEdit_copywriting_play_list")
self.gridLayout_37.addWidget(self.textEdit_copywriting_play_list, 1, 1, 1, 4)
self.pushButton_copywriting_save = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_save.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_save.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_save.setObjectName("pushButton_copywriting_save")
self.gridLayout_37.addWidget(self.pushButton_copywriting_save, 7, 4, 1, 1)
self.pushButton_copywriting_refresh_list = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_refresh_list.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_refresh_list.setObjectName("pushButton_copywriting_refresh_list")
self.gridLayout_37.addWidget(self.pushButton_copywriting_refresh_list, 2, 8, 1, 1)
self.pushButton_copywriting_select = QtWidgets.QPushButton(self.groupBox_copywriting)
self.pushButton_copywriting_select.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_select.setStyleSheet("text-align: center;\n"
"padding: 12px 16px;\n"
"font: 80 10pt \"微软雅黑\";")
self.pushButton_copywriting_select.setObjectName("pushButton_copywriting_select")
self.gridLayout_37.addWidget(self.pushButton_copywriting_select, 2, 7, 1, 1)
self.gridLayout_37.setRowStretch(0, 1)
self.gridLayout_37.setRowStretch(1, 1)
self.gridLayout_37.setRowStretch(2, 1)
self.gridLayout_37.setRowStretch(3, 1)
self.gridLayout_37.setRowStretch(4, 7)
self.gridLayout_37.setRowStretch(5, 1)
self.gridLayout_37.setRowStretch(6, 1)
self.gridLayout_37.setRowStretch(7, 1)
self.gridLayout_38.addWidget(self.groupBox_copywriting, 0, 0, 1, 1)
self.stackedWidget.addWidget(self.page_3)
self.gridLayout_20.addWidget(self.stackedWidget, 0, 0, 9, 1)
self.pushButton_run = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_run.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_run.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: rgba(103, 194, 58, 255);\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_run.setObjectName("pushButton_run")
self.gridLayout_20.addWidget(self.pushButton_run, 1, 1, 1, 1)
self.pushButton_config_page = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_config_page.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_config_page.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: #e6a23c;\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_config_page.setObjectName("pushButton_config_page")
self.gridLayout_20.addWidget(self.pushButton_config_page, 3, 1, 1, 1)
self.pushButton_factory = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_factory.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_factory.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: #f56c6c;\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_factory.setObjectName("pushButton_factory")
self.gridLayout_20.addWidget(self.pushButton_factory, 7, 1, 1, 1)
self.pushButton_copywriting_page = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_copywriting_page.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton_copywriting_page.setStyleSheet("border: 1px solid #dcdfe6;\n"
"background-color: #e6a23c;\n"
"text-align: center;\n"
"padding: 12px 16px;\n"
"border-radius: 4px;\n"
"font: 75 12pt \"微软雅黑\";")
self.pushButton_copywriting_page.setObjectName("pushButton_copywriting_page")
self.gridLayout_20.addWidget(self.pushButton_copywriting_page, 5, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1067, 26))
self.menubar.setObjectName("menubar")
self.menu_about = QtWidgets.QMenu(self.menubar)
self.menu_about.setObjectName("menu_about")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.action_official_store = QtWidgets.QAction(MainWindow)
self.action_official_store.setObjectName("action_official_store")
self.action_video_tutorials = QtWidgets.QAction(MainWindow)
self.action_video_tutorials.setObjectName("action_video_tutorials")
self.action_exit = QtWidgets.QAction(MainWindow)
self.action_exit.setObjectName("action_exit")
self.menu_about.addAction(self.action_official_store)
self.menu_about.addAction(self.action_video_tutorials)
self.menu.addAction(self.action_exit)
self.menubar.addAction(self.menu.menuAction())
self.menubar.addAction(self.menu_about.menuAction())
self.retranslateUi(MainWindow)
self.stackedWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "AI Vtuber"))
self.pushButton_run_page.setText(_translate("MainWindow", "②运行页"))
self.pushButton_save.setText(_translate("MainWindow", "保存配置"))
self.groupBox_claude.setTitle(_translate("MainWindow", "Claude"))
self.label_claude_slack_user_token.setText(_translate("MainWindow", "slack_user_token"))
self.label_claude_bot_user_id.setText(_translate("MainWindow", "bot_user_id"))
self.groupBox_openai.setTitle(_translate("MainWindow", "openai"))
self.label_openai_api.setText(_translate("MainWindow", "API"))
self.label_openai_api_key.setText(_translate("MainWindow", "API KEY"))
self.label_need_lang.setText(_translate("MainWindow", "回复语言"))
self.label_platform.setText(_translate("MainWindow", "平台"))
self.label_after_prompt.setText(_translate("MainWindow", "提示词后缀"))
self.groupBox_chatglm.setTitle(_translate("MainWindow", "ChatGLM"))
self.label_chatglm_api_ip_port.setText(_translate("MainWindow", "api地址"))
self.label_chatglm_top_p.setText(_translate("MainWindow", "前p个选择"))
self.label_chatglm_max_length.setText(_translate("MainWindow", "最大长度限制"))
self.label_chatglm_temperature.setText(_translate("MainWindow", "温度"))
self.label_chat_type.setText(_translate("MainWindow", "聊天类型"))
self.label_room_display_id.setText(_translate("MainWindow", "直播间号"))
self.label_before_prompt.setText(_translate("MainWindow", "提示词前缀"))
self.groupBox.setTitle(_translate("MainWindow", "过滤"))
self.label_filter_max_char_len.setText(_translate("MainWindow", "最大字符数"))
self.label_filter_badwords_path.setText(_translate("MainWindow", "违禁词路径"))
self.label_filter_max_len.setText(_translate("MainWindow", "最大单词数"))
self.label_filter_before_must_str.setText(_translate("MainWindow", "弹幕前缀"))
self.label_filter_after_must_str.setText(_translate("MainWindow", "弹幕后缀"))
self.comboBox_chat_type.setItemText(0, _translate("MainWindow", "复读机"))
self.comboBox_chat_type.setItemText(1, _translate("MainWindow", "ChatGPT"))
self.comboBox_chat_type.setItemText(2, _translate("MainWindow", "Claude"))
self.comboBox_chat_type.setItemText(3, _translate("MainWindow", "ChatGLM"))
self.comboBox_chat_type.setItemText(4, _translate("MainWindow", "chat_with_file"))
self.comboBox_chat_type.setItemText(5, _translate("MainWindow", "Chatterbot"))
self.comboBox_chat_type.setItemText(6, _translate("MainWindow", "text-generation-webui"))
self.label_audio_synthesis_type.setText(_translate("MainWindow", "语音合成"))
self.groupBox_chatgpt.setTitle(_translate("MainWindow", "chatgpt"))
self.label_chatgpt_model.setText(_translate("MainWindow", "模型"))
self.label_chatgpt_max_tokens.setText(_translate("MainWindow", "最大令牌数"))
self.label_chatgpt_temperature.setText(_translate("MainWindow", "温度"))
self.label_chatgpt_top_p.setText(_translate("MainWindow", "前p个选择"))
self.label_chatgpt_frequency_penalty.setText(_translate("MainWindow", "频率惩罚"))
self.label_chatgpt_presence_penalty.setText(_translate("MainWindow", "存在惩罚"))
self.label_chatgpt_preset.setText(_translate("MainWindow", "预设"))
self.comboBox_chatgpt_model.setItemText(0, _translate("MainWindow", "gpt-3.5-turbo"))
self.comboBox_chatgpt_model.setItemText(1, _translate("MainWindow", "gpt-3.5-turbo-0301"))
self.comboBox_chatgpt_model.setItemText(2, _translate("MainWindow", "gpt-3.5-turbo-0613"))
self.comboBox_chatgpt_model.setItemText(3, _translate("MainWindow", "gpt-3.5-turbo-16k"))
self.comboBox_chatgpt_model.setItemText(4, _translate("MainWindow", "gpt-3.5-turbo-16k-0613"))
self.comboBox_chatgpt_model.setItemText(5, _translate("MainWindow", "gpt-4"))
self.comboBox_chatgpt_model.setItemText(6, _translate("MainWindow", "gpt-4-0314"))