sofieff commited on
Commit
fd96ddd
·
1 Parent(s): 2bcad7e

sound_manager to control

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
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
- sound_manager.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
 
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 sound_manager, data_processor, classifier
38
- if sound_manager is None:
39
  print("[DEBUG] Initializing SoundManager...")
40
- sound_manager = SoundManager()
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()