Spaces:
Runtime error
Runtime error
Commit
·
47ef223
1
Parent(s):
f653f06
Fix import path for src directory in Docker environment
Browse files- streamlit_app.py +3 -2
streamlit_app.py
CHANGED
|
@@ -9,8 +9,9 @@ import nltk
|
|
| 9 |
|
| 10 |
nltk.download('punkt')
|
| 11 |
|
| 12 |
-
# Add
|
| 13 |
-
sys.path.insert(0, str(Path(__file__).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 (
|