richardorama
commited on
Commit
β’
85c2bc8
1
Parent(s):
4426139
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,6 @@ def summarize(txt):
|
|
70 |
|
71 |
# Create a button and trigger the summarize function when clicked
|
72 |
if st.sidebar.button('Summarize Sentiment'):
|
73 |
-
summarize(SENTIMENT)
|
74 |
else:
|
75 |
st.warning('π Please enter Sentiment!')
|
|
|
70 |
|
71 |
# Create a button and trigger the summarize function when clicked
|
72 |
if st.sidebar.button('Summarize Sentiment'):
|
73 |
+
summarize(ast.literal_eval(SENTIMENT)) #convert string to actual list
|
74 |
else:
|
75 |
st.warning('π Please enter Sentiment!')
|