Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +5 -0
app/main.py
CHANGED
|
@@ -5,6 +5,11 @@ import sys
|
|
| 5 |
import numpy as np
|
| 6 |
import plotly.graph_objects as go
|
| 7 |
from sklearn.linear_model import LinearRegression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Add the parent directory to the Python path
|
| 10 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
import plotly.graph_objects as go
|
| 7 |
from sklearn.linear_model import LinearRegression
|
| 8 |
+
import nltk
|
| 9 |
+
from nltk.corpus import stopwords
|
| 10 |
+
from nltk.tokenize import word_tokenize, sent_tokenize
|
| 11 |
+
nltk.download('punkt_tab')
|
| 12 |
+
nltk.download('stopwords')
|
| 13 |
|
| 14 |
# Add the parent directory to the Python path
|
| 15 |
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|