Spaces:
Runtime error
Runtime error
Commit
·
aad5244
1
Parent(s):
cd5e304
Update app.py
Browse files
app.py
CHANGED
@@ -28,17 +28,16 @@ st.title("Tweet Sentiment Extractor...")
|
|
28 |
# take text/tweet input
|
29 |
textbox = st.text_area('Write your text in this box:', '',height=100, max_chars=500 )
|
30 |
option = st.selectbox(
|
31 |
-
'
|
32 |
('positive', 'negative', 'neutral'))
|
33 |
|
34 |
-
st.write(option)
|
35 |
python_dict = {"text":[textbox], "sentiment":[option]}
|
36 |
|
37 |
dataset = Dataset.from_dict(python_dict)
|
38 |
|
39 |
MAX_LENGTH = 105
|
40 |
|
41 |
-
button = st.button('Extract text
|
42 |
if button:
|
43 |
with st.spinner('In progress.......'):
|
44 |
|
|
|
28 |
# take text/tweet input
|
29 |
textbox = st.text_area('Write your text in this box:', '',height=100, max_chars=500 )
|
30 |
option = st.selectbox(
|
31 |
+
'Pick the sentiment',
|
32 |
('positive', 'negative', 'neutral'))
|
33 |
|
|
|
34 |
python_dict = {"text":[textbox], "sentiment":[option]}
|
35 |
|
36 |
dataset = Dataset.from_dict(python_dict)
|
37 |
|
38 |
MAX_LENGTH = 105
|
39 |
|
40 |
+
button = st.button('Extract word/phrase from the text with the given the given sentiment..')
|
41 |
if button:
|
42 |
with st.spinner('In progress.......'):
|
43 |
|