Spaces:
Sleeping
Sleeping
sound_manager to control
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ A user-friendly, accessible neuro-music studio for motor rehabilitation and crea
|
|
| 42 |
|
| 43 |
```
|
| 44 |
app.py # Main Gradio app and UI logic
|
| 45 |
-
|
| 46 |
classifier.py # EEG classifier
|
| 47 |
config.py # Configuration and constants
|
| 48 |
data_processor.py # EEG data loading and preprocessing
|
|
|
|
| 42 |
|
| 43 |
```
|
| 44 |
app.py # Main Gradio app and UI logic
|
| 45 |
+
sound_control.py # Audio processing and effect logic
|
| 46 |
classifier.py # EEG classifier
|
| 47 |
config.py # Configuration and constants
|
| 48 |
data_processor.py # EEG data loading and preprocessing
|
app.py
CHANGED
|
@@ -34,10 +34,10 @@ classifier = None
|
|
| 34 |
|
| 35 |
def lazy_init():
|
| 36 |
print("[DEBUG] Entering lazy_init()")
|
| 37 |
-
global
|
| 38 |
-
if
|
| 39 |
print("[DEBUG] Initializing SoundManager...")
|
| 40 |
-
|
| 41 |
if data_processor is None:
|
| 42 |
print("[DEBUG] Initializing EEGDataProcessor...")
|
| 43 |
data_processor = EEGDataProcessor()
|
|
|
|
| 34 |
|
| 35 |
def lazy_init():
|
| 36 |
print("[DEBUG] Entering lazy_init()")
|
| 37 |
+
global sound_control, data_processor, classifier
|
| 38 |
+
if sound_control is None:
|
| 39 |
print("[DEBUG] Initializing SoundManager...")
|
| 40 |
+
sound_control = SoundManager()
|
| 41 |
if data_processor is None:
|
| 42 |
print("[DEBUG] Initializing EEGDataProcessor...")
|
| 43 |
data_processor = EEGDataProcessor()
|