Spaces:
Runtime error
Runtime error
Commit
·
59804c6
1
Parent(s):
38e3c18
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
@@ -14,9 +18,7 @@ from sklearn.feature_extraction.text import CountVectorizer
|
|
14 |
from sklearn import svm
|
15 |
# sentiment analysis
|
16 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
17 |
-
|
18 |
-
failed = pip.main(["install", nltk])
|
19 |
-
failed_2 = pip.main(["install", sklearn])
|
20 |
|
21 |
# creating page sections
|
22 |
site_header = st.container()
|
|
|
1 |
+
import os
|
2 |
+
os.system('pip install nltk')
|
3 |
+
os.system('pip install sklearn')
|
4 |
+
|
5 |
import streamlit as st
|
6 |
import pandas as pd
|
7 |
import numpy as np
|
|
|
18 |
from sklearn import svm
|
19 |
# sentiment analysis
|
20 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
21 |
+
|
|
|
|
|
22 |
|
23 |
# creating page sections
|
24 |
site_header = st.container()
|