-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathogma_config_ui.py
More file actions
31 lines (27 loc) · 834 Bytes
/
Copy pathogma_config_ui.py
File metadata and controls
31 lines (27 loc) · 834 Bytes
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
"""
OGMA Configuration UI
====================
Interfaces de configuration et paramétrage OGMA.
CONTIENT :
- Interface de configuration TTS
- Paramètres audio et modèles
- Configuration des backends
- Interfaces de réglages système
"""
from nicegui import ui
import json
import os
from typing import Dict, List, Optional, Any
def _get_settings_manager():
"""Helper pour accéder au settings manager via import dynamique"""
try:
import sys
ogma_ng = sys.modules.get('ogma_ng')
if ogma_ng and hasattr(ogma_ng, '_ensure_settings_manager'):
return ogma_ng._ensure_settings_manager()
return None
except Exception:
return None
def _notify_safe(message: str, type: str = 'info'):
"""Helper pour les notifications via ui.notify"""
ui.notify(message, type=type)