PrashantRGore commited on
Commit
47ef223
·
1 Parent(s): f653f06

Fix import path for src directory in Docker environment

Browse files
Files changed (1) hide show
  1. streamlit_app.py +3 -2
streamlit_app.py CHANGED
@@ -9,8 +9,9 @@ import nltk
9
 
10
  nltk.download('punkt')
11
 
12
- # Add parent directory to path
13
- sys.path.insert(0, str(Path(__file__).parent.parent))
 
14
 
15
  # NOW THIS IMPORT WILL WORK!
16
  from src.inference import (
 
9
 
10
  nltk.download('punkt')
11
 
12
+ # Add src directory to path
13
+ sys.path.insert(0, str(Path(__file__).parent / "src"))
14
+
15
 
16
  # NOW THIS IMPORT WILL WORK!
17
  from src.inference import (