Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ except ImportError:
|
|
| 22 |
# Fallback for container environment
|
| 23 |
from src.components.ai_core import AICore
|
| 24 |
from src.aegis_integration import AegisBridge
|
| 25 |
-
from src
|
| 26 |
from src.components.search_engine import SearchEngine
|
| 27 |
|
| 28 |
# Configure logging
|
|
@@ -97,8 +97,8 @@ try:
|
|
| 97 |
# Handle both direct execution and package import
|
| 98 |
try:
|
| 99 |
from ..utils.cocoon_manager import CocoonManager
|
| 100 |
-
except (ImportError, ValueError):
|
| 101 |
-
# Fallback for direct execution
|
| 102 |
import sys
|
| 103 |
import os
|
| 104 |
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
|
|
|
| 22 |
# Fallback for container environment
|
| 23 |
from src.components.ai_core import AICore
|
| 24 |
from src.aegis_integration import AegisBridge
|
| 25 |
+
from src..aegis_integration.config import AEGIS_CONFIG
|
| 26 |
from src.components.search_engine import SearchEngine
|
| 27 |
|
| 28 |
# Configure logging
|
|
|
|
| 97 |
# Handle both direct execution and package import
|
| 98 |
try:
|
| 99 |
from ..utils.cocoon_manager import CocoonManager
|
| 100 |
+
except (ImportError, ValueError, SystemError):
|
| 101 |
+
# Fallback for direct execution when app.py is main module
|
| 102 |
import sys
|
| 103 |
import os
|
| 104 |
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|