Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +9 -2
src/streamlit_app.py
CHANGED
|
@@ -1,8 +1,15 @@
|
|
| 1 |
import sys
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
# Add
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
import streamlit as st
|
| 8 |
import re
|
|
|
|
| 1 |
import sys
|
| 2 |
import os
|
| 3 |
|
| 4 |
+
# Add both root and src to Python path
|
| 5 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 6 |
+
root_dir = os.path.dirname(current_dir)
|
| 7 |
+
sys.path.insert(0, root_dir) # Add root first
|
| 8 |
+
sys.path.insert(0, current_dir) # Then add src
|
| 9 |
+
|
| 10 |
+
print(f"🔧 DEBUG: Python paths: {sys.path}")
|
| 11 |
+
print(f"🔧 DEBUG: Current dir: {current_dir}")
|
| 12 |
+
print(f"🔧 DEBUG: Root dir: {root_dir}")
|
| 13 |
|
| 14 |
import streamlit as st
|
| 15 |
import re
|