Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -1
src/streamlit_app.py
CHANGED
@@ -8,7 +8,9 @@ import sys
|
|
8 |
import os
|
9 |
|
10 |
# Add root directory to Python path
|
11 |
-
|
|
|
|
|
12 |
|
13 |
from utils.audio_processing import trim_audio, download_audio_as_wav
|
14 |
from utils.video_processing import trim_video
|
|
|
8 |
import os
|
9 |
|
10 |
# Add root directory to Python path
|
11 |
+
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
12 |
+
if ROOT_DIR not in sys.path:
|
13 |
+
sys.path.insert(0, ROOT_DIR)
|
14 |
|
15 |
from utils.audio_processing import trim_audio, download_audio_as_wav
|
16 |
from utils.video_processing import trim_video
|