Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
import os
|
| 2 |
os.environ["STREAMLIT_NO_ALT"] = "true"
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
import streamlit as st
|
| 5 |
from textblob import TextBlob
|
| 6 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
|
|
|
| 1 |
import os
|
| 2 |
os.environ["STREAMLIT_NO_ALT"] = "true"
|
| 3 |
|
| 4 |
+
# Install necessary packages
|
| 5 |
+
import subprocess
|
| 6 |
+
subprocess.call(["pip", "install", "textblob"])
|
| 7 |
+
subprocess.call(["pip", "install", "vadersentiment"])
|
| 8 |
+
subprocess.call(["pip", "install", "flair"])
|
| 9 |
+
|
| 10 |
import streamlit as st
|
| 11 |
from textblob import TextBlob
|
| 12 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|