forked from Ikaros-521/AI-Vtuber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UI_main.py
2602 lines (2595 loc) · 199 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(1191, 834)
MainWindow.setStyleSheet("background-color: rgba(255, 255, 255, 50);")
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_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)
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_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.setStyleSheet("background-color: rgba(255, 255, 255, 0);\n"
"font: 75 14pt \"微软雅黑\";")
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 14pt \"微软雅黑\";\n"
"background-color: rgba(255, 255, 255, 50);\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, -9992, 991, 10717))
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.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.formWidget.setObjectName("formWidget")
self.gridLayout = QtWidgets.QGridLayout(self.formWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.comboBox_visual_body = QtWidgets.QComboBox(self.formWidget)
self.comboBox_visual_body.setObjectName("comboBox_visual_body")
self.gridLayout.addWidget(self.comboBox_visual_body, 3, 1, 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)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem, 0, 1, 1, 1)
self.gridLayout_5.setColumnStretch(0, 9)
self.gridLayout_5.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_chatgpt, 28, 0, 2, 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.lineEdit_after_prompt = QtWidgets.QLineEdit(self.formWidget)
self.lineEdit_after_prompt.setObjectName("lineEdit_after_prompt")
self.gridLayout.addWidget(self.lineEdit_after_prompt, 6, 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.gridLayout.addWidget(self.comboBox_audio_synthesis_type, 11, 1, 1, 1)
self.groupBox_audio_random_speed = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_audio_random_speed.setObjectName("groupBox_audio_random_speed")
self.gridLayout_53 = QtWidgets.QGridLayout(self.groupBox_audio_random_speed)
self.gridLayout_53.setObjectName("gridLayout_53")
self.gridLayout_52 = QtWidgets.QGridLayout()
self.gridLayout_52.setObjectName("gridLayout_52")
self.lineEdit_audio_random_speed_normal_speed_min = QtWidgets.QLineEdit(self.groupBox_audio_random_speed)
self.lineEdit_audio_random_speed_normal_speed_min.setObjectName("lineEdit_audio_random_speed_normal_speed_min")
self.gridLayout_52.addWidget(self.lineEdit_audio_random_speed_normal_speed_min, 2, 1, 1, 1)
self.label_audio_random_speed_normal_enable = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_normal_enable.setObjectName("label_audio_random_speed_normal_enable")
self.gridLayout_52.addWidget(self.label_audio_random_speed_normal_enable, 1, 0, 1, 1)
self.label_audio_random_speed_normal_speed_min = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_normal_speed_min.setObjectName("label_audio_random_speed_normal_speed_min")
self.gridLayout_52.addWidget(self.label_audio_random_speed_normal_speed_min, 2, 0, 1, 1)
self.label_audio_random_speed_normal_speed_max = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_normal_speed_max.setObjectName("label_audio_random_speed_normal_speed_max")
self.gridLayout_52.addWidget(self.label_audio_random_speed_normal_speed_max, 2, 2, 1, 1)
self.checkBox_audio_random_speed_normal_enable = QtWidgets.QCheckBox(self.groupBox_audio_random_speed)
self.checkBox_audio_random_speed_normal_enable.setObjectName("checkBox_audio_random_speed_normal_enable")
self.gridLayout_52.addWidget(self.checkBox_audio_random_speed_normal_enable, 1, 1, 1, 1)
self.lineEdit_audio_random_speed_normal_speed_max = QtWidgets.QLineEdit(self.groupBox_audio_random_speed)
self.lineEdit_audio_random_speed_normal_speed_max.setObjectName("lineEdit_audio_random_speed_normal_speed_max")
self.gridLayout_52.addWidget(self.lineEdit_audio_random_speed_normal_speed_max, 2, 3, 1, 1)
self.label_audio_random_speed_copywriting_enable = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_copywriting_enable.setObjectName("label_audio_random_speed_copywriting_enable")
self.gridLayout_52.addWidget(self.label_audio_random_speed_copywriting_enable, 3, 0, 1, 1)
self.checkBox_audio_random_speed_copywriting_enable = QtWidgets.QCheckBox(self.groupBox_audio_random_speed)
self.checkBox_audio_random_speed_copywriting_enable.setObjectName("checkBox_audio_random_speed_copywriting_enable")
self.gridLayout_52.addWidget(self.checkBox_audio_random_speed_copywriting_enable, 3, 1, 1, 1)
self.label_audio_random_speed_copywriting_speed_min = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_copywriting_speed_min.setObjectName("label_audio_random_speed_copywriting_speed_min")
self.gridLayout_52.addWidget(self.label_audio_random_speed_copywriting_speed_min, 4, 0, 1, 1)
self.lineEdit_audio_random_speed_copywriting_speed_min = QtWidgets.QLineEdit(self.groupBox_audio_random_speed)
self.lineEdit_audio_random_speed_copywriting_speed_min.setObjectName("lineEdit_audio_random_speed_copywriting_speed_min")
self.gridLayout_52.addWidget(self.lineEdit_audio_random_speed_copywriting_speed_min, 4, 1, 1, 1)
self.label_audio_random_speed_copywriting_speed_max = QtWidgets.QLabel(self.groupBox_audio_random_speed)
self.label_audio_random_speed_copywriting_speed_max.setObjectName("label_audio_random_speed_copywriting_speed_max")
self.gridLayout_52.addWidget(self.label_audio_random_speed_copywriting_speed_max, 4, 2, 1, 1)
self.lineEdit_audio_random_speed_copywriting_speed_max = QtWidgets.QLineEdit(self.groupBox_audio_random_speed)
self.lineEdit_audio_random_speed_copywriting_speed_max.setObjectName("lineEdit_audio_random_speed_copywriting_speed_max")
self.gridLayout_52.addWidget(self.lineEdit_audio_random_speed_copywriting_speed_max, 4, 3, 1, 1)
self.gridLayout_52.setColumnStretch(0, 1)
self.gridLayout_52.setColumnStretch(1, 2)
self.gridLayout_52.setColumnStretch(2, 1)
self.gridLayout_52.setColumnStretch(3, 2)
self.gridLayout_53.addLayout(self.gridLayout_52, 0, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_53.addItem(spacerItem1, 0, 1, 1, 1)
self.gridLayout_53.setColumnStretch(0, 9)
self.gridLayout_53.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_audio_random_speed, 25, 0, 1, 3)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem2, 0, 2, 1, 1)
self.label_platform = QtWidgets.QLabel(self.formWidget)
self.label_platform.setAutoFillBackground(False)
self.label_platform.setObjectName("label_platform")
self.gridLayout.addWidget(self.label_platform, 0, 0, 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.gridLayout.addWidget(self.comboBox_platform, 0, 1, 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, 5, 1, 1, 1)
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, 4, 1, 1, 1)
self.groupBox_local_qa = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_local_qa.setObjectName("groupBox_local_qa")
self.gridLayout_51 = QtWidgets.QGridLayout(self.groupBox_local_qa)
self.gridLayout_51.setObjectName("gridLayout_51")
self.gridLayout_50 = QtWidgets.QGridLayout()
self.gridLayout_50.setObjectName("gridLayout_50")
self.label_local_qa_audio_enable = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_audio_enable.setObjectName("label_local_qa_audio_enable")
self.gridLayout_50.addWidget(self.label_local_qa_audio_enable, 4, 0, 1, 1)
self.label_local_qa_text_enable = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_text_enable.setObjectName("label_local_qa_text_enable")
self.gridLayout_50.addWidget(self.label_local_qa_text_enable, 0, 0, 1, 1)
self.checkBox_local_qa_text_enable = QtWidgets.QCheckBox(self.groupBox_local_qa)
self.checkBox_local_qa_text_enable.setObjectName("checkBox_local_qa_text_enable")
self.gridLayout_50.addWidget(self.checkBox_local_qa_text_enable, 0, 1, 1, 1)
self.lineEdit_local_qa_text_file_path = QtWidgets.QLineEdit(self.groupBox_local_qa)
self.lineEdit_local_qa_text_file_path.setObjectName("lineEdit_local_qa_text_file_path")
self.gridLayout_50.addWidget(self.lineEdit_local_qa_text_file_path, 2, 1, 1, 1)
self.label_local_qa_audio_similarity = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_audio_similarity.setObjectName("label_local_qa_audio_similarity")
self.gridLayout_50.addWidget(self.label_local_qa_audio_similarity, 6, 0, 1, 1)
self.checkBox_local_qa_audio_enable = QtWidgets.QCheckBox(self.groupBox_local_qa)
self.checkBox_local_qa_audio_enable.setObjectName("checkBox_local_qa_audio_enable")
self.gridLayout_50.addWidget(self.checkBox_local_qa_audio_enable, 4, 1, 1, 1)
self.label_local_qa_text_similarity = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_text_similarity.setObjectName("label_local_qa_text_similarity")
self.gridLayout_50.addWidget(self.label_local_qa_text_similarity, 3, 0, 1, 1)
self.lineEdit_local_qa_audio_file_path = QtWidgets.QLineEdit(self.groupBox_local_qa)
self.lineEdit_local_qa_audio_file_path.setObjectName("lineEdit_local_qa_audio_file_path")
self.gridLayout_50.addWidget(self.lineEdit_local_qa_audio_file_path, 5, 1, 1, 1)
self.label_local_qa_audio_file_path = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_audio_file_path.setObjectName("label_local_qa_audio_file_path")
self.gridLayout_50.addWidget(self.label_local_qa_audio_file_path, 5, 0, 1, 1)
self.label_local_qa_text_file_path = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_text_file_path.setObjectName("label_local_qa_text_file_path")
self.gridLayout_50.addWidget(self.label_local_qa_text_file_path, 2, 0, 1, 1)
self.lineEdit_local_qa_text_similarity = QtWidgets.QLineEdit(self.groupBox_local_qa)
self.lineEdit_local_qa_text_similarity.setObjectName("lineEdit_local_qa_text_similarity")
self.gridLayout_50.addWidget(self.lineEdit_local_qa_text_similarity, 3, 1, 1, 1)
self.lineEdit_local_qa_audio_similarity = QtWidgets.QLineEdit(self.groupBox_local_qa)
self.lineEdit_local_qa_audio_similarity.setObjectName("lineEdit_local_qa_audio_similarity")
self.gridLayout_50.addWidget(self.lineEdit_local_qa_audio_similarity, 6, 1, 1, 1)
self.label_local_qa_text_type = QtWidgets.QLabel(self.groupBox_local_qa)
self.label_local_qa_text_type.setObjectName("label_local_qa_text_type")
self.gridLayout_50.addWidget(self.label_local_qa_text_type, 1, 0, 1, 1)
self.comboBox_local_qa_text_type = QtWidgets.QComboBox(self.groupBox_local_qa)
self.comboBox_local_qa_text_type.setObjectName("comboBox_local_qa_text_type")
self.comboBox_local_qa_text_type.addItem("")
self.comboBox_local_qa_text_type.addItem("")
self.gridLayout_50.addWidget(self.comboBox_local_qa_text_type, 1, 1, 1, 1)
self.gridLayout_51.addLayout(self.gridLayout_50, 0, 0, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_51.addItem(spacerItem3, 0, 1, 1, 1)
self.gridLayout_51.setColumnStretch(0, 9)
self.gridLayout_51.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_local_qa, 19, 0, 1, 3)
self.groupBox_bilibili = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_bilibili.setObjectName("groupBox_bilibili")
self.gridLayout_72 = QtWidgets.QGridLayout(self.groupBox_bilibili)
self.gridLayout_72.setObjectName("gridLayout_72")
self.gridLayout_bilibili = QtWidgets.QGridLayout()
self.gridLayout_bilibili.setObjectName("gridLayout_bilibili")
self.gridLayout_72.addLayout(self.gridLayout_bilibili, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_bilibili, 12, 0, 1, 2)
self.groupBox_log = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_log.setObjectName("groupBox_log")
self.gridLayout_47 = QtWidgets.QGridLayout(self.groupBox_log)
self.gridLayout_47.setObjectName("gridLayout_47")
self.gridLayout_46 = QtWidgets.QGridLayout()
self.gridLayout_46.setObjectName("gridLayout_46")
self.comboBox_comment_log_type = QtWidgets.QComboBox(self.groupBox_log)
self.comboBox_comment_log_type.setObjectName("comboBox_comment_log_type")
self.comboBox_comment_log_type.addItem("")
self.comboBox_comment_log_type.addItem("")
self.comboBox_comment_log_type.addItem("")
self.comboBox_comment_log_type.addItem("")
self.gridLayout_46.addWidget(self.comboBox_comment_log_type, 1, 1, 1, 1)
self.label_comment_log_type = QtWidgets.QLabel(self.groupBox_log)
self.label_comment_log_type.setObjectName("label_comment_log_type")
self.gridLayout_46.addWidget(self.label_comment_log_type, 1, 0, 1, 1)
self.label_captions_file_path = QtWidgets.QLabel(self.groupBox_log)
self.label_captions_file_path.setObjectName("label_captions_file_path")
self.gridLayout_46.addWidget(self.label_captions_file_path, 3, 0, 1, 1)
self.lineEdit_captions_file_path = QtWidgets.QLineEdit(self.groupBox_log)
self.lineEdit_captions_file_path.setObjectName("lineEdit_captions_file_path")
self.gridLayout_46.addWidget(self.lineEdit_captions_file_path, 3, 1, 1, 1)
self.label_captions_enable = QtWidgets.QLabel(self.groupBox_log)
self.label_captions_enable.setObjectName("label_captions_enable")
self.gridLayout_46.addWidget(self.label_captions_enable, 2, 0, 1, 1)
self.checkBox_captions_enable = QtWidgets.QCheckBox(self.groupBox_log)
self.checkBox_captions_enable.setObjectName("checkBox_captions_enable")
self.gridLayout_46.addWidget(self.checkBox_captions_enable, 2, 1, 1, 1)
self.gridLayout_46.setColumnStretch(0, 1)
self.gridLayout_46.setColumnStretch(1, 5)
self.gridLayout_47.addLayout(self.gridLayout_46, 0, 0, 1, 1)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_47.addItem(spacerItem4, 0, 1, 1, 1)
self.gridLayout_47.setColumnStretch(0, 9)
self.gridLayout_47.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_log, 18, 0, 1, 3)
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_visual_body = QtWidgets.QLabel(self.formWidget)
self.label_visual_body.setObjectName("label_visual_body")
self.gridLayout.addWidget(self.label_visual_body, 3, 0, 1, 1)
self.groupBox_filter = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_filter.setStyleSheet("")
self.groupBox_filter.setObjectName("groupBox_filter")
self.gridLayout_26 = QtWidgets.QGridLayout(self.groupBox_filter)
self.gridLayout_26.setObjectName("gridLayout_26")
self.gridLayout_filter = QtWidgets.QGridLayout()
self.gridLayout_filter.setObjectName("gridLayout_filter")
self.label_filter_talk_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_talk_forget_reserve_num.setObjectName("label_filter_talk_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_talk_forget_reserve_num, 15, 0, 1, 1)
self.lineEdit_filter_talk_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_talk_forget_reserve_num.setObjectName("lineEdit_filter_talk_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_talk_forget_reserve_num, 15, 1, 1, 1)
self.lineEdit_filter_max_char_len = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_max_char_len.setObjectName("lineEdit_filter_max_char_len")
self.gridLayout_filter.addWidget(self.lineEdit_filter_max_char_len, 5, 1, 1, 1)
self.lineEdit_filter_comment_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_comment_forget_duration.setObjectName("lineEdit_filter_comment_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_comment_forget_duration, 6, 1, 1, 1)
self.lineEdit_filter_entrance_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_entrance_forget_duration.setObjectName("lineEdit_filter_entrance_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_entrance_forget_duration, 12, 1, 1, 1)
self.label_filter_comment_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_comment_forget_reserve_num.setObjectName("label_filter_comment_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_comment_forget_reserve_num, 7, 0, 1, 1)
self.label_filter_max_len = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_max_len.setObjectName("label_filter_max_len")
self.gridLayout_filter.addWidget(self.label_filter_max_len, 4, 0, 1, 1)
self.lineEdit_filter_badwords_path = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_badwords_path.setObjectName("lineEdit_filter_badwords_path")
self.gridLayout_filter.addWidget(self.lineEdit_filter_badwords_path, 2, 1, 1, 1)
self.label_filter_max_char_len = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_max_char_len.setObjectName("label_filter_max_char_len")
self.gridLayout_filter.addWidget(self.label_filter_max_char_len, 5, 0, 1, 1)
self.lineEdit_filter_max_len = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_max_len.setObjectName("lineEdit_filter_max_len")
self.gridLayout_filter.addWidget(self.lineEdit_filter_max_len, 4, 1, 1, 1)
self.lineEdit_filter_gift_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_gift_forget_duration.setObjectName("lineEdit_filter_gift_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_gift_forget_duration, 8, 1, 1, 1)
self.label_filter_entrance_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_entrance_forget_reserve_num.setObjectName("label_filter_entrance_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_entrance_forget_reserve_num, 13, 0, 1, 1)
self.label_filter_talk_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_talk_forget_duration.setObjectName("label_filter_talk_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_talk_forget_duration, 14, 0, 1, 1)
self.label_filter_badwords_path = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_badwords_path.setObjectName("label_filter_badwords_path")
self.gridLayout_filter.addWidget(self.label_filter_badwords_path, 2, 0, 1, 1)
self.label_filter_schedule_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_schedule_forget_duration.setObjectName("label_filter_schedule_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_schedule_forget_duration, 16, 0, 1, 1)
self.label_filter_comment_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_comment_forget_duration.setObjectName("label_filter_comment_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_comment_forget_duration, 6, 0, 1, 1)
self.lineEdit_filter_schedule_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_schedule_forget_duration.setObjectName("lineEdit_filter_schedule_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_schedule_forget_duration, 16, 1, 1, 1)
self.lineEdit_filter_gift_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_gift_forget_reserve_num.setObjectName("lineEdit_filter_gift_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_gift_forget_reserve_num, 9, 1, 1, 1)
self.label_filter_follow_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_follow_forget_duration.setObjectName("label_filter_follow_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_follow_forget_duration, 10, 0, 1, 1)
self.lineEdit_filter_entrance_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_entrance_forget_reserve_num.setObjectName("lineEdit_filter_entrance_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_entrance_forget_reserve_num, 13, 1, 1, 1)
self.label_filter_bad_pinyin_path = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_bad_pinyin_path.setObjectName("label_filter_bad_pinyin_path")
self.gridLayout_filter.addWidget(self.label_filter_bad_pinyin_path, 3, 0, 1, 1)
self.textEdit_filter_after_must_str = QtWidgets.QTextEdit(self.groupBox_filter)
self.textEdit_filter_after_must_str.setObjectName("textEdit_filter_after_must_str")
self.gridLayout_filter.addWidget(self.textEdit_filter_after_must_str, 1, 1, 1, 1)
self.textEdit_filter_before_must_str = QtWidgets.QTextEdit(self.groupBox_filter)
self.textEdit_filter_before_must_str.setObjectName("textEdit_filter_before_must_str")
self.gridLayout_filter.addWidget(self.textEdit_filter_before_must_str, 0, 1, 1, 1)
self.label_filter_gift_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_gift_forget_reserve_num.setObjectName("label_filter_gift_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_gift_forget_reserve_num, 9, 0, 1, 1)
self.lineEdit_filter_bad_pinyin_path = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_bad_pinyin_path.setObjectName("lineEdit_filter_bad_pinyin_path")
self.gridLayout_filter.addWidget(self.lineEdit_filter_bad_pinyin_path, 3, 1, 1, 1)
self.label_filter_before_must_str = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_before_must_str.setObjectName("label_filter_before_must_str")
self.gridLayout_filter.addWidget(self.label_filter_before_must_str, 0, 0, 1, 1)
self.lineEdit_filter_talk_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_talk_forget_duration.setObjectName("lineEdit_filter_talk_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_talk_forget_duration, 14, 1, 1, 1)
self.label_filter_after_must_str = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_after_must_str.setObjectName("label_filter_after_must_str")
self.gridLayout_filter.addWidget(self.label_filter_after_must_str, 1, 0, 1, 1)
self.lineEdit_filter_comment_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_comment_forget_reserve_num.setObjectName("lineEdit_filter_comment_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_comment_forget_reserve_num, 7, 1, 1, 1)
self.label_filter_schedule_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_schedule_forget_reserve_num.setObjectName("label_filter_schedule_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_schedule_forget_reserve_num, 17, 0, 1, 1)
self.label_filter_gift_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_gift_forget_duration.setObjectName("label_filter_gift_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_gift_forget_duration, 8, 0, 1, 1)
self.lineEdit_filter_schedule_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_schedule_forget_reserve_num.setObjectName("lineEdit_filter_schedule_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_schedule_forget_reserve_num, 17, 1, 1, 1)
self.label_filter_entrance_forget_duration = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_entrance_forget_duration.setObjectName("label_filter_entrance_forget_duration")
self.gridLayout_filter.addWidget(self.label_filter_entrance_forget_duration, 12, 0, 1, 1)
self.label_filter_follow_forget_reserve_num = QtWidgets.QLabel(self.groupBox_filter)
self.label_filter_follow_forget_reserve_num.setObjectName("label_filter_follow_forget_reserve_num")
self.gridLayout_filter.addWidget(self.label_filter_follow_forget_reserve_num, 11, 0, 1, 1)
self.lineEdit_filter_follow_forget_duration = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_follow_forget_duration.setObjectName("lineEdit_filter_follow_forget_duration")
self.gridLayout_filter.addWidget(self.lineEdit_filter_follow_forget_duration, 10, 1, 1, 1)
self.lineEdit_filter_follow_forget_reserve_num = QtWidgets.QLineEdit(self.groupBox_filter)
self.lineEdit_filter_follow_forget_reserve_num.setObjectName("lineEdit_filter_follow_forget_reserve_num")
self.gridLayout_filter.addWidget(self.lineEdit_filter_follow_forget_reserve_num, 11, 1, 1, 1)
self.gridLayout_26.addLayout(self.gridLayout_filter, 0, 0, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_26.addItem(spacerItem5, 0, 1, 1, 1)
self.gridLayout_26.setColumnStretch(0, 9)
self.gridLayout_26.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_filter, 20, 0, 1, 3)
self.label_after_prompt = QtWidgets.QLabel(self.formWidget)
self.label_after_prompt.setObjectName("label_after_prompt")
self.gridLayout.addWidget(self.label_after_prompt, 6, 0, 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, 11, 0, 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)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_4.addItem(spacerItem6, 0, 1, 1, 1)
self.gridLayout_4.setColumnStretch(0, 9)
self.gridLayout_4.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_openai, 26, 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, 4, 0, 1, 1)
self.groupBox_show_box = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_show_box.setObjectName("groupBox_show_box")
self.gridLayout_62 = QtWidgets.QGridLayout(self.groupBox_show_box)
self.gridLayout_62.setObjectName("gridLayout_62")
self.gridLayout_show_box = QtWidgets.QGridLayout()
self.gridLayout_show_box.setObjectName("gridLayout_show_box")
self.gridLayout_62.addLayout(self.gridLayout_show_box, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_show_box, 13, 0, 1, 2)
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_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.label_chatglm_history_max_len = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_history_max_len.setObjectName("label_chatglm_history_max_len")
self.gridLayout_8.addWidget(self.label_chatglm_history_max_len, 5, 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.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_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.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_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_history_enable = QtWidgets.QLabel(self.groupBox_chatglm)
self.label_chatglm_history_enable.setObjectName("label_chatglm_history_enable")
self.gridLayout_8.addWidget(self.label_chatglm_history_enable, 4, 0, 1, 1)
self.checkBox_chatglm_history_enable = QtWidgets.QCheckBox(self.groupBox_chatglm)
self.checkBox_chatglm_history_enable.setObjectName("checkBox_chatglm_history_enable")
self.gridLayout_8.addWidget(self.checkBox_chatglm_history_enable, 4, 1, 1, 1)
self.lineEdit_chatglm_history_max_len = QtWidgets.QLineEdit(self.groupBox_chatglm)
self.lineEdit_chatglm_history_max_len.setObjectName("lineEdit_chatglm_history_max_len")
self.gridLayout_8.addWidget(self.lineEdit_chatglm_history_max_len, 5, 1, 1, 1)
self.gridLayout_9.addLayout(self.gridLayout_8, 0, 0, 1, 1)
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_9.addItem(spacerItem7, 0, 1, 1, 1)
self.gridLayout_9.setColumnStretch(0, 9)
self.gridLayout_9.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_chatglm, 32, 0, 1, 3)
self.groupBox_claude2 = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_claude2.setObjectName("groupBox_claude2")
self.gridLayout_65 = QtWidgets.QGridLayout(self.groupBox_claude2)
self.gridLayout_65.setObjectName("gridLayout_65")
self.gridLayout_60 = QtWidgets.QGridLayout()
self.gridLayout_60.setObjectName("gridLayout_60")
self.lineEdit_claude2_cookie = QtWidgets.QLineEdit(self.groupBox_claude2)
self.lineEdit_claude2_cookie.setObjectName("lineEdit_claude2_cookie")
self.gridLayout_60.addWidget(self.lineEdit_claude2_cookie, 0, 1, 1, 1)
self.lineEdit_claude2_proxies_socks5 = QtWidgets.QLineEdit(self.groupBox_claude2)
self.lineEdit_claude2_proxies_socks5.setObjectName("lineEdit_claude2_proxies_socks5")
self.gridLayout_60.addWidget(self.lineEdit_claude2_proxies_socks5, 4, 1, 1, 1)
self.label_claude2_proxies_https = QtWidgets.QLabel(self.groupBox_claude2)
self.label_claude2_proxies_https.setObjectName("label_claude2_proxies_https")
self.gridLayout_60.addWidget(self.label_claude2_proxies_https, 3, 0, 1, 1)
self.label_claude2_proxies_socks5 = QtWidgets.QLabel(self.groupBox_claude2)
self.label_claude2_proxies_socks5.setObjectName("label_claude2_proxies_socks5")
self.gridLayout_60.addWidget(self.label_claude2_proxies_socks5, 4, 0, 1, 1)
self.checkBox_claude2_use_proxy = QtWidgets.QCheckBox(self.groupBox_claude2)
self.checkBox_claude2_use_proxy.setObjectName("checkBox_claude2_use_proxy")
self.gridLayout_60.addWidget(self.checkBox_claude2_use_proxy, 1, 1, 1, 1)
self.label_claude2_cookie = QtWidgets.QLabel(self.groupBox_claude2)
self.label_claude2_cookie.setObjectName("label_claude2_cookie")
self.gridLayout_60.addWidget(self.label_claude2_cookie, 0, 0, 1, 1)
self.label_claude2_use_proxy = QtWidgets.QLabel(self.groupBox_claude2)
self.label_claude2_use_proxy.setObjectName("label_claude2_use_proxy")
self.gridLayout_60.addWidget(self.label_claude2_use_proxy, 1, 0, 1, 1)
self.label_claude2_proxies_http = QtWidgets.QLabel(self.groupBox_claude2)
self.label_claude2_proxies_http.setObjectName("label_claude2_proxies_http")
self.gridLayout_60.addWidget(self.label_claude2_proxies_http, 2, 0, 1, 1)
self.lineEdit_claude2_proxies_https = QtWidgets.QLineEdit(self.groupBox_claude2)
self.lineEdit_claude2_proxies_https.setObjectName("lineEdit_claude2_proxies_https")
self.gridLayout_60.addWidget(self.lineEdit_claude2_proxies_https, 3, 1, 1, 1)
self.lineEdit_claude2_proxies_http = QtWidgets.QLineEdit(self.groupBox_claude2)
self.lineEdit_claude2_proxies_http.setObjectName("lineEdit_claude2_proxies_http")
self.gridLayout_60.addWidget(self.lineEdit_claude2_proxies_http, 2, 1, 1, 1)
self.gridLayout_65.addLayout(self.gridLayout_60, 0, 0, 1, 1)
spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_65.addItem(spacerItem8, 0, 1, 1, 1)
self.gridLayout_65.setColumnStretch(0, 9)
self.gridLayout_65.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_claude2, 31, 0, 1, 3)
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.gridLayout_6 = QtWidgets.QGridLayout()
self.gridLayout_6.setObjectName("gridLayout_6")
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_6.addWidget(self.lineEdit_claude_slack_user_token, 1, 1, 1, 1)
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, 1, 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_6.addWidget(self.label_claude_bot_user_id, 2, 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_6.addWidget(self.lineEdit_claude_bot_user_id, 2, 1, 1, 1)
self.gridLayout_7.addLayout(self.gridLayout_6, 0, 0, 1, 1)
spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_7.addItem(spacerItem9, 0, 1, 1, 1)
self.gridLayout_7.setColumnStretch(0, 9)
self.gridLayout_7.setColumnStretch(1, 1)
self.gridLayout.addWidget(self.groupBox_claude, 30, 0, 1, 3)
self.groupBox_thanks = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_thanks.setObjectName("groupBox_thanks")
self.gridLayout_42 = QtWidgets.QGridLayout(self.groupBox_thanks)
self.gridLayout_42.setObjectName("gridLayout_42")
self.label_thanks_follow_enable = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_follow_enable.setObjectName("label_thanks_follow_enable")
self.gridLayout_42.addWidget(self.label_thanks_follow_enable, 6, 0, 1, 1)
self.label_thanks_entrance_enable = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_entrance_enable.setObjectName("label_thanks_entrance_enable")
self.gridLayout_42.addWidget(self.label_thanks_entrance_enable, 0, 0, 1, 1)
self.label_thanks_entrance_copy = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_entrance_copy.setObjectName("label_thanks_entrance_copy")
self.gridLayout_42.addWidget(self.label_thanks_entrance_copy, 2, 0, 1, 1)
self.lineEdit_thanks_lowest_price = QtWidgets.QLineEdit(self.groupBox_thanks)
self.lineEdit_thanks_lowest_price.setObjectName("lineEdit_thanks_lowest_price")
self.gridLayout_42.addWidget(self.lineEdit_thanks_lowest_price, 5, 1, 1, 1)
self.label_thanks_follow_copy = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_follow_copy.setObjectName("label_thanks_follow_copy")
self.gridLayout_42.addWidget(self.label_thanks_follow_copy, 7, 0, 1, 1)
self.label_thanks_gift_copy = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_gift_copy.setObjectName("label_thanks_gift_copy")
self.gridLayout_42.addWidget(self.label_thanks_gift_copy, 4, 0, 1, 1)
self.label_thanks_gift_enable = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_gift_enable.setObjectName("label_thanks_gift_enable")
self.gridLayout_42.addWidget(self.label_thanks_gift_enable, 3, 0, 1, 1)
self.lineEdit_thanks_follow_copy = QtWidgets.QLineEdit(self.groupBox_thanks)
self.lineEdit_thanks_follow_copy.setObjectName("lineEdit_thanks_follow_copy")
self.gridLayout_42.addWidget(self.lineEdit_thanks_follow_copy, 7, 1, 1, 1)
spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_42.addItem(spacerItem10, 2, 2, 1, 1)
self.checkBox_thanks_gift_enable = QtWidgets.QCheckBox(self.groupBox_thanks)
self.checkBox_thanks_gift_enable.setObjectName("checkBox_thanks_gift_enable")
self.gridLayout_42.addWidget(self.checkBox_thanks_gift_enable, 3, 1, 1, 1)
self.lineEdit_thanks_entrance_copy = QtWidgets.QLineEdit(self.groupBox_thanks)
self.lineEdit_thanks_entrance_copy.setObjectName("lineEdit_thanks_entrance_copy")
self.gridLayout_42.addWidget(self.lineEdit_thanks_entrance_copy, 2, 1, 1, 1)
self.label_thanks_lowest_price = QtWidgets.QLabel(self.groupBox_thanks)
self.label_thanks_lowest_price.setObjectName("label_thanks_lowest_price")
self.gridLayout_42.addWidget(self.label_thanks_lowest_price, 5, 0, 1, 1)
self.lineEdit_thanks_gift_copy = QtWidgets.QLineEdit(self.groupBox_thanks)
self.lineEdit_thanks_gift_copy.setObjectName("lineEdit_thanks_gift_copy")
self.gridLayout_42.addWidget(self.lineEdit_thanks_gift_copy, 4, 1, 1, 1)
self.checkBox_thanks_entrance_enable = QtWidgets.QCheckBox(self.groupBox_thanks)
self.checkBox_thanks_entrance_enable.setObjectName("checkBox_thanks_entrance_enable")
self.gridLayout_42.addWidget(self.checkBox_thanks_entrance_enable, 0, 1, 1, 1)
self.checkBox_thanks_follow_enable = QtWidgets.QCheckBox(self.groupBox_thanks)
self.checkBox_thanks_follow_enable.setObjectName("checkBox_thanks_follow_enable")
self.gridLayout_42.addWidget(self.checkBox_thanks_follow_enable, 6, 1, 1, 1)
self.gridLayout_42.setColumnStretch(0, 1)
self.gridLayout_42.setColumnStretch(1, 8)
self.gridLayout_42.setColumnStretch(2, 1)
self.gridLayout.addWidget(self.groupBox_thanks, 22, 0, 1, 3)
self.groupBox_play_audio = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_play_audio.setObjectName("groupBox_play_audio")
self.gridLayout_68 = QtWidgets.QGridLayout(self.groupBox_play_audio)
self.gridLayout_68.setObjectName("gridLayout_68")
self.gridLayout_play_audio = QtWidgets.QGridLayout()
self.gridLayout_play_audio.setObjectName("gridLayout_play_audio")
self.gridLayout_68.addLayout(self.gridLayout_play_audio, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_play_audio, 14, 0, 1, 2)
self.label_before_prompt = QtWidgets.QLabel(self.formWidget)
self.label_before_prompt.setObjectName("label_before_prompt")
self.gridLayout.addWidget(self.label_before_prompt, 5, 0, 1, 1)
self.groupBox_read_comment = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_read_comment.setObjectName("groupBox_read_comment")
self.gridLayout_75 = QtWidgets.QGridLayout(self.groupBox_read_comment)
self.gridLayout_75.setObjectName("gridLayout_75")
self.gridLayout_read_comment = QtWidgets.QGridLayout()
self.gridLayout_read_comment.setObjectName("gridLayout_read_comment")
self.gridLayout_75.addLayout(self.gridLayout_read_comment, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_read_comment, 16, 0, 1, 2)
self.groupBox_read_user_name = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_read_user_name.setObjectName("groupBox_read_user_name")
self.gridLayout_59 = QtWidgets.QGridLayout(self.groupBox_read_user_name)
self.gridLayout_59.setObjectName("gridLayout_59")
self.gridLayout_58 = QtWidgets.QGridLayout()
self.gridLayout_58.setObjectName("gridLayout_58")
self.label_read_user_name_reply_before = QtWidgets.QLabel(self.groupBox_read_user_name)
self.label_read_user_name_reply_before.setObjectName("label_read_user_name_reply_before")
self.gridLayout_58.addWidget(self.label_read_user_name_reply_before, 2, 0, 1, 1)
self.textEdit_read_user_name_reply_before = QtWidgets.QTextEdit(self.groupBox_read_user_name)
self.textEdit_read_user_name_reply_before.setObjectName("textEdit_read_user_name_reply_before")
self.gridLayout_58.addWidget(self.textEdit_read_user_name_reply_before, 2, 1, 1, 1)
self.label_read_user_name_enable = QtWidgets.QLabel(self.groupBox_read_user_name)
self.label_read_user_name_enable.setObjectName("label_read_user_name_enable")
self.gridLayout_58.addWidget(self.label_read_user_name_enable, 0, 0, 1, 1)
self.checkBox_read_user_name_enable = QtWidgets.QCheckBox(self.groupBox_read_user_name)
self.checkBox_read_user_name_enable.setObjectName("checkBox_read_user_name_enable")
self.gridLayout_58.addWidget(self.checkBox_read_user_name_enable, 0, 1, 1, 1)
self.label_read_user_name_voice_change = QtWidgets.QLabel(self.groupBox_read_user_name)
self.label_read_user_name_voice_change.setObjectName("label_read_user_name_voice_change")
self.gridLayout_58.addWidget(self.label_read_user_name_voice_change, 1, 0, 1, 1)
self.checkBox_read_user_name_voice_change = QtWidgets.QCheckBox(self.groupBox_read_user_name)
self.checkBox_read_user_name_voice_change.setObjectName("checkBox_read_user_name_voice_change")
self.gridLayout_58.addWidget(self.checkBox_read_user_name_voice_change, 1, 1, 1, 1)
self.label_read_user_name_reply_after = QtWidgets.QLabel(self.groupBox_read_user_name)
self.label_read_user_name_reply_after.setObjectName("label_read_user_name_reply_after")
self.gridLayout_58.addWidget(self.label_read_user_name_reply_after, 3, 0, 1, 1)
self.textEdit_read_user_name_reply_after = QtWidgets.QTextEdit(self.groupBox_read_user_name)
self.textEdit_read_user_name_reply_after.setObjectName("textEdit_read_user_name_reply_after")
self.gridLayout_58.addWidget(self.textEdit_read_user_name_reply_after, 3, 1, 1, 1)
self.gridLayout_59.addLayout(self.gridLayout_58, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_read_user_name, 17, 0, 1, 2)
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.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.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.groupBox_xuniren = QtWidgets.QGroupBox(self.formWidget)
self.groupBox_xuniren.setObjectName("groupBox_xuniren")
self.gridLayout_89 = QtWidgets.QGridLayout(self.groupBox_xuniren)
self.gridLayout_89.setObjectName("gridLayout_89")
self.gridLayout_xuniren = QtWidgets.QGridLayout()
self.gridLayout_xuniren.setObjectName("gridLayout_xuniren")
self.gridLayout_89.addLayout(self.gridLayout_xuniren, 0, 0, 1, 1)
self.gridLayout.addWidget(self.groupBox_xuniren, 15, 0, 1, 2)
self.gridLayout.setColumnStretch(0, 1)
self.gridLayout.setColumnStretch(1, 8)
self.gridLayout.setColumnStretch(2, 1)
self.verticalLayout.addWidget(self.formWidget)
self.groupBox_zhipu = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_zhipu.setObjectName("groupBox_zhipu")
self.gridLayout_71 = QtWidgets.QGridLayout(self.groupBox_zhipu)
self.gridLayout_71.setObjectName("gridLayout_71")
self.gridLayout_zhipu = QtWidgets.QGridLayout()
self.gridLayout_zhipu.setObjectName("gridLayout_zhipu")
self.gridLayout_71.addLayout(self.gridLayout_zhipu, 0, 0, 1, 1)
spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_71.addItem(spacerItem11, 0, 1, 1, 1)
self.gridLayout_71.setColumnStretch(0, 9)
self.gridLayout_71.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_zhipu)
self.groupBox_langchain_chatglm = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_langchain_chatglm.setObjectName("groupBox_langchain_chatglm")
self.gridLayout_64 = QtWidgets.QGridLayout(self.groupBox_langchain_chatglm)
self.gridLayout_64.setObjectName("gridLayout_64")
self.gridLayout_langchain_chatglm = QtWidgets.QGridLayout()
self.gridLayout_langchain_chatglm.setObjectName("gridLayout_langchain_chatglm")
self.label_langchain_chatglm_api_ip_port = QtWidgets.QLabel(self.groupBox_langchain_chatglm)
self.label_langchain_chatglm_api_ip_port.setObjectName("label_langchain_chatglm_api_ip_port")
self.gridLayout_langchain_chatglm.addWidget(self.label_langchain_chatglm_api_ip_port, 0, 0, 1, 1)
self.comboBox_langchain_chatglm_chat_type = QtWidgets.QComboBox(self.groupBox_langchain_chatglm)
self.comboBox_langchain_chatglm_chat_type.setObjectName("comboBox_langchain_chatglm_chat_type")
self.gridLayout_langchain_chatglm.addWidget(self.comboBox_langchain_chatglm_chat_type, 1, 1, 1, 1)
self.label_langchain_chatglm_chat_type = QtWidgets.QLabel(self.groupBox_langchain_chatglm)
self.label_langchain_chatglm_chat_type.setObjectName("label_langchain_chatglm_chat_type")
self.gridLayout_langchain_chatglm.addWidget(self.label_langchain_chatglm_chat_type, 1, 0, 1, 1)
self.label_langchain_chatglm_history_enable = QtWidgets.QLabel(self.groupBox_langchain_chatglm)
self.label_langchain_chatglm_history_enable.setObjectName("label_langchain_chatglm_history_enable")
self.gridLayout_langchain_chatglm.addWidget(self.label_langchain_chatglm_history_enable, 3, 0, 1, 1)
self.lineEdit_langchain_chatglm_knowledge_base_id = QtWidgets.QLineEdit(self.groupBox_langchain_chatglm)
self.lineEdit_langchain_chatglm_knowledge_base_id.setObjectName("lineEdit_langchain_chatglm_knowledge_base_id")
self.gridLayout_langchain_chatglm.addWidget(self.lineEdit_langchain_chatglm_knowledge_base_id, 2, 1, 1, 1)
self.checkBox_langchain_chatglm_history_enable = QtWidgets.QCheckBox(self.groupBox_langchain_chatglm)
self.checkBox_langchain_chatglm_history_enable.setObjectName("checkBox_langchain_chatglm_history_enable")
self.gridLayout_langchain_chatglm.addWidget(self.checkBox_langchain_chatglm_history_enable, 3, 1, 1, 1)
self.lineEdit_langchain_chatglm_api_ip_port = QtWidgets.QLineEdit(self.groupBox_langchain_chatglm)
self.lineEdit_langchain_chatglm_api_ip_port.setObjectName("lineEdit_langchain_chatglm_api_ip_port")
self.gridLayout_langchain_chatglm.addWidget(self.lineEdit_langchain_chatglm_api_ip_port, 0, 1, 1, 1)
self.label_langchain_chatglm_knowledge_base_id = QtWidgets.QLabel(self.groupBox_langchain_chatglm)
self.label_langchain_chatglm_knowledge_base_id.setObjectName("label_langchain_chatglm_knowledge_base_id")
self.gridLayout_langchain_chatglm.addWidget(self.label_langchain_chatglm_knowledge_base_id, 2, 0, 1, 1)
self.label_langchain_chatglm_history_max_len = QtWidgets.QLabel(self.groupBox_langchain_chatglm)
self.label_langchain_chatglm_history_max_len.setObjectName("label_langchain_chatglm_history_max_len")
self.gridLayout_langchain_chatglm.addWidget(self.label_langchain_chatglm_history_max_len, 4, 0, 1, 1)
self.lineEdit_langchain_chatglm_history_max_len = QtWidgets.QLineEdit(self.groupBox_langchain_chatglm)
self.lineEdit_langchain_chatglm_history_max_len.setObjectName("lineEdit_langchain_chatglm_history_max_len")
self.gridLayout_langchain_chatglm.addWidget(self.lineEdit_langchain_chatglm_history_max_len, 4, 1, 1, 1)
self.gridLayout_64.addLayout(self.gridLayout_langchain_chatglm, 0, 0, 1, 1)
spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_64.addItem(spacerItem12, 0, 1, 1, 1)
self.gridLayout_64.setColumnStretch(0, 9)
self.gridLayout_64.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_langchain_chatglm)
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.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.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.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.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.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.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.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.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.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.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.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_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.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.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.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.gridLayout_11.setColumnStretch(0, 1)
self.gridLayout_10.addLayout(self.gridLayout_11, 0, 0, 1, 1)
spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_10.addItem(spacerItem13, 0, 1, 1, 1)
self.gridLayout_10.setColumnStretch(0, 9)
self.gridLayout_10.setColumnStretch(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)
spacerItem14 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_28.addItem(spacerItem14, 0, 1, 1, 1)
self.gridLayout_28.setColumnStretch(0, 9)
self.gridLayout_28.setColumnStretch(1, 1)
self.verticalLayout.addWidget(self.groupBox_text_generation_webui)
self.groupBox_sparkdesk = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_sparkdesk.setObjectName("groupBox_sparkdesk")
self.gridLayout_55 = QtWidgets.QGridLayout(self.groupBox_sparkdesk)
self.gridLayout_55.setObjectName("gridLayout_55")
self.gridLayout_54 = QtWidgets.QGridLayout()
self.gridLayout_54.setObjectName("gridLayout_54")
self.comboBox_sparkdesk_type = QtWidgets.QComboBox(self.groupBox_sparkdesk)
self.comboBox_sparkdesk_type.setObjectName("comboBox_sparkdesk_type")
self.gridLayout_54.addWidget(self.comboBox_sparkdesk_type, 0, 1, 1, 1)
self.label_sparkdesk_GtToken = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_GtToken.setObjectName("label_sparkdesk_GtToken")
self.gridLayout_54.addWidget(self.label_sparkdesk_GtToken, 3, 0, 1, 1)
self.lineEdit_sparkdesk_GtToken = QtWidgets.QLineEdit(self.groupBox_sparkdesk)
self.lineEdit_sparkdesk_GtToken.setObjectName("lineEdit_sparkdesk_GtToken")
self.gridLayout_54.addWidget(self.lineEdit_sparkdesk_GtToken, 3, 1, 1, 1)
self.lineEdit_sparkdesk_cookie = QtWidgets.QLineEdit(self.groupBox_sparkdesk)
self.lineEdit_sparkdesk_cookie.setObjectName("lineEdit_sparkdesk_cookie")
self.gridLayout_54.addWidget(self.lineEdit_sparkdesk_cookie, 1, 1, 1, 1)
self.label_sparkdesk_app_id = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_app_id.setObjectName("label_sparkdesk_app_id")
self.gridLayout_54.addWidget(self.label_sparkdesk_app_id, 4, 0, 1, 1)
self.label_sparkdesk_api_secret = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_api_secret.setObjectName("label_sparkdesk_api_secret")
self.gridLayout_54.addWidget(self.label_sparkdesk_api_secret, 5, 0, 1, 1)
self.lineEdit_sparkdesk_api_secret = QtWidgets.QLineEdit(self.groupBox_sparkdesk)
self.lineEdit_sparkdesk_api_secret.setObjectName("lineEdit_sparkdesk_api_secret")
self.gridLayout_54.addWidget(self.lineEdit_sparkdesk_api_secret, 5, 1, 1, 1)
self.label_sparkdesk_cookie = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_cookie.setObjectName("label_sparkdesk_cookie")
self.gridLayout_54.addWidget(self.label_sparkdesk_cookie, 1, 0, 1, 1)
self.label_sparkdesk_fd = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_fd.setObjectName("label_sparkdesk_fd")
self.gridLayout_54.addWidget(self.label_sparkdesk_fd, 2, 0, 1, 1)
self.label_sparkdesk_type = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_type.setObjectName("label_sparkdesk_type")
self.gridLayout_54.addWidget(self.label_sparkdesk_type, 0, 0, 1, 1)
self.lineEdit_sparkdesk_fd = QtWidgets.QLineEdit(self.groupBox_sparkdesk)
self.lineEdit_sparkdesk_fd.setObjectName("lineEdit_sparkdesk_fd")
self.gridLayout_54.addWidget(self.lineEdit_sparkdesk_fd, 2, 1, 1, 1)
self.lineEdit_sparkdesk_app_id = QtWidgets.QLineEdit(self.groupBox_sparkdesk)
self.lineEdit_sparkdesk_app_id.setObjectName("lineEdit_sparkdesk_app_id")
self.gridLayout_54.addWidget(self.lineEdit_sparkdesk_app_id, 4, 1, 1, 1)
self.label_sparkdesk_api_key = QtWidgets.QLabel(self.groupBox_sparkdesk)
self.label_sparkdesk_api_key.setObjectName("label_sparkdesk_api_key")