Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -6
src/streamlit_app.py
CHANGED
|
@@ -1,16 +1,15 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import sys
|
| 3 |
import os
|
| 4 |
-
from modules.streamlit_ui import display_video_feed, display_alerts
|
| 5 |
|
| 6 |
-
# Fix path for modules
|
| 7 |
-
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'
|
| 8 |
|
| 9 |
-
# Now import from modules
|
| 10 |
-
|
| 11 |
from modules.fault_detection import detect_faults
|
| 12 |
from modules.ai_model import run_inference
|
| 13 |
-
from modules.utils import load_image # If you're using image pre-processing
|
| 14 |
|
| 15 |
# Streamlit app logic
|
| 16 |
st.title("Solar Panel and Windmill Fault Monitoring System")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import sys
|
| 3 |
import os
|
|
|
|
| 4 |
|
| 5 |
+
# ✅ Fix path for modules (MUST be done before importing from modules)
|
| 6 |
+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
| 7 |
|
| 8 |
+
# ✅ Now import from modules
|
| 9 |
+
from modules.streamlit_ui import display_video_feed, display_alerts
|
| 10 |
from modules.fault_detection import detect_faults
|
| 11 |
from modules.ai_model import run_inference
|
| 12 |
+
from modules.utils import load_image # If you're using image pre-processing
|
| 13 |
|
| 14 |
# Streamlit app logic
|
| 15 |
st.title("Solar Panel and Windmill Fault Monitoring System")
|