From f8820cc48e0e19419ec15ef399be875c66a7853d Mon Sep 17 00:00:00 2001 From: Yuan-Man <68322456+Yuan-ManX@users.noreply.github.com> Date: Fri, 9 Feb 2024 18:29:11 +0800 Subject: [PATCH] Update inference_gui.py --- GPT_SoVITS/inference_gui.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GPT_SoVITS/inference_gui.py b/GPT_SoVITS/inference_gui.py index d523804..f6cfdc5 100644 --- a/GPT_SoVITS/inference_gui.py +++ b/GPT_SoVITS/inference_gui.py @@ -133,6 +133,9 @@ class GPTSoVITSGUI(QMainWindow): self.synthesize_button = QPushButton("合成") self.synthesize_button.clicked.connect(self.synthesize) + self.clear_output_button = QPushButton("清空输出") + self.clear_output_button.clicked.connect(self.clear_output) + self.status_bar = QStatusBar() main_layout = QVBoxLayout() @@ -180,6 +183,8 @@ class GPTSoVITSGUI(QMainWindow): main_layout.addWidget(self.synthesize_button) + main_layout.addWidget(self.clear_output_button) + main_layout.addWidget(self.status_bar) self.central_widget = QWidget() @@ -288,6 +293,9 @@ class GPTSoVITSGUI(QMainWindow): def update_input_paths(self, input_box, file_path): input_box.setText(file_path) + def clear_output(self): + self.output_text.clear() + def synthesize(self): GPT_model_path = self.GPT_model_input.text() SoVITS_model_path = self.SoVITS_model_input.text()