Commit ·
bbc6d94
1
Parent(s): 5652fe3
Fixing deployment issues:
Browse files- multi-page support
- version conflicts
- README.md +1 -1
- app.py +11 -3
- requirements.txt +1 -1
- visualization/requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🎵
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version: "1.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: "1.30.0"
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
CHANGED
|
@@ -5,19 +5,27 @@ redirecting to the visualization app.
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
import sys
|
|
|
|
| 8 |
from pathlib import Path
|
| 9 |
|
| 10 |
-
#
|
| 11 |
root_dir = Path(__file__).parent
|
|
|
|
|
|
|
|
|
|
| 12 |
sys.path.insert(0, str(root_dir))
|
| 13 |
sys.path.insert(0, str(root_dir / "ai_messaging_system_v2"))
|
| 14 |
-
sys.path.insert(0, str(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Import and run the visualization app
|
| 17 |
import importlib.util
|
| 18 |
|
| 19 |
# Load the visualization app module
|
| 20 |
-
app_path =
|
| 21 |
spec = importlib.util.spec_from_file_location("visualization_app", app_path)
|
| 22 |
visualization_app = importlib.util.module_from_spec(spec)
|
| 23 |
spec.loader.exec_module(visualization_app)
|
|
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
import sys
|
| 8 |
+
import os
|
| 9 |
from pathlib import Path
|
| 10 |
|
| 11 |
+
# Get directories
|
| 12 |
root_dir = Path(__file__).parent
|
| 13 |
+
visualization_dir = root_dir / "visualization"
|
| 14 |
+
|
| 15 |
+
# Add both directories to Python path
|
| 16 |
sys.path.insert(0, str(root_dir))
|
| 17 |
sys.path.insert(0, str(root_dir / "ai_messaging_system_v2"))
|
| 18 |
+
sys.path.insert(0, str(visualization_dir))
|
| 19 |
+
|
| 20 |
+
# Change working directory to visualization folder
|
| 21 |
+
# This ensures Streamlit can find the pages/ directory
|
| 22 |
+
os.chdir(str(visualization_dir))
|
| 23 |
|
| 24 |
# Import and run the visualization app
|
| 25 |
import importlib.util
|
| 26 |
|
| 27 |
# Load the visualization app module
|
| 28 |
+
app_path = visualization_dir / "app.py"
|
| 29 |
spec = importlib.util.spec_from_file_location("visualization_app", app_path)
|
| 30 |
visualization_app = importlib.util.module_from_spec(spec)
|
| 31 |
spec.loader.exec_module(visualization_app)
|
requirements.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
# Merges dependencies from both ai_messaging_system_v2 and visualization
|
| 3 |
|
| 4 |
# Core Dependencies
|
| 5 |
-
streamlit>=1.
|
| 6 |
pandas>=2.0.0
|
| 7 |
numpy>=1.20.0
|
| 8 |
python-dotenv>=1.0.0
|
|
|
|
| 2 |
# Merges dependencies from both ai_messaging_system_v2 and visualization
|
| 3 |
|
| 4 |
# Core Dependencies
|
| 5 |
+
streamlit>=1.30.0
|
| 6 |
pandas>=2.0.0
|
| 7 |
numpy>=1.20.0
|
| 8 |
python-dotenv>=1.0.0
|
visualization/requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# AI Messaging System - Visualization Tool Requirements
|
| 2 |
|
| 3 |
# Core Dependencies
|
| 4 |
-
streamlit>=1.
|
| 5 |
pandas>=2.0.0
|
| 6 |
python-dotenv>=1.0.0
|
| 7 |
|
|
|
|
| 1 |
# AI Messaging System - Visualization Tool Requirements
|
| 2 |
|
| 3 |
# Core Dependencies
|
| 4 |
+
streamlit>=1.30.0
|
| 5 |
pandas>=2.0.0
|
| 6 |
python-dotenv>=1.0.0
|
| 7 |
|