Support multi models. Moved config stuff into config_dialog

This commit is contained in:
mesonium
2024-06-15 22:11:50 +02:00
committed by hueso
parent 31c2868599
commit f5db7f9809
4 changed files with 117 additions and 136 deletions

View File

@@ -13,14 +13,15 @@
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
from gi.repository import Gtk
import logging
from .. import helper
from gi.repository import Gtk
from gajim.plugins.gajimplugin import GajimPluginConfig
from gajim.plugins.plugins_i18n import _
from .. import helper
log = logging.getLogger('gajim.p.stt_voice_messages_sttbox')
class STTBox(Gtk.Box):
@@ -52,9 +53,6 @@ class STTBox(Gtk.Box):
self.show_all()
#def update_config(self, config: GajimPluginConfig):
# self._model = config.data['class']()
def _on_transcribe_clicked(self, _button: Gtk.Button) -> None:
log.debug('config.data = %s', self._config.data)
model_class = self._config.data['model_class']