MogensR commited on
Commit
4e82dc1
·
1 Parent(s): 5a26c1b

Update ui_components.py

Browse files
Files changed (1) hide show
  1. ui_components.py +7 -7
ui_components.py CHANGED
@@ -12,12 +12,12 @@
12
  from typing import Optional, Dict, Any, Tuple
13
  from pathlib import Path
14
 
15
- # Remove redundant Gradio schema patching - handled in app.py
16
  print("UI Components: Initializing interface...")
17
 
18
- # Import core functions with comprehensive error handling
19
  try:
20
- from app import (
21
  VideoProcessor,
22
  processor,
23
  load_models_with_validation,
@@ -31,9 +31,9 @@
31
  print(f"UI Components: Core functions import failed: {e}")
32
  CORE_FUNCTIONS_AVAILABLE = False
33
 
34
- # Import utilities with error handling
35
  try:
36
- from utilities import PROFESSIONAL_BACKGROUNDS
37
  UTILITIES_AVAILABLE = True
38
  print("UI Components: Utilities imported successfully")
39
  except Exception as e:
@@ -45,9 +45,9 @@
45
  "minimalist": {"name": "Minimalist White", "description": "Clean white background"}
46
  }
47
 
48
- # Import two-stage processor with error handling
49
  try:
50
- from two_stage_processor import CHROMA_PRESETS
51
  TWO_STAGE_AVAILABLE = True
52
  print("UI Components: Two-stage processor available")
53
  except ImportError:
 
12
  from typing import Optional, Dict, Any, Tuple
13
  from pathlib import Path
14
 
15
+ # Remove redundant Gradio schema patching - handled in core/app.py
16
  print("UI Components: Initializing interface...")
17
 
18
+ # Import core functions with comprehensive error handling - Updated paths
19
  try:
20
+ from core.app import (
21
  VideoProcessor,
22
  processor,
23
  load_models_with_validation,
 
31
  print(f"UI Components: Core functions import failed: {e}")
32
  CORE_FUNCTIONS_AVAILABLE = False
33
 
34
+ # Import utilities with error handling - Updated path
35
  try:
36
+ from utils.backgrounds import PROFESSIONAL_BACKGROUNDS # Updated path
37
  UTILITIES_AVAILABLE = True
38
  print("UI Components: Utilities imported successfully")
39
  except Exception as e:
 
45
  "minimalist": {"name": "Minimalist White", "description": "Clean white background"}
46
  }
47
 
48
+ # Import two-stage processor with error handling - Updated path
49
  try:
50
+ from processing.two_stage.two_stage_processor import CHROMA_PRESETS # Updated path
51
  TWO_STAGE_AVAILABLE = True
52
  print("UI Components: Two-stage processor available")
53
  except ImportError: