Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -0
src/streamlit_app.py
CHANGED
@@ -4,6 +4,11 @@ import shutil
|
|
4 |
import psutil
|
5 |
import torch
|
6 |
import torchaudio
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
from utils.audio_processing import trim_audio, download_audio_as_wav
|
9 |
from utils.video_processing import trim_video
|
|
|
4 |
import psutil
|
5 |
import torch
|
6 |
import torchaudio
|
7 |
+
import sys
|
8 |
+
import os
|
9 |
+
|
10 |
+
# Add root directory to Python path
|
11 |
+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
12 |
|
13 |
from utils.audio_processing import trim_audio, download_audio_as_wav
|
14 |
from utils.video_processing import trim_video
|