rsakadewa7
commited on
Update predict.py
Browse files- predict.py +3 -6
predict.py
CHANGED
@@ -160,19 +160,16 @@ sentiment_map = {0: 'Negative', 1: 'Neutral', 2: 'Positive'}
|
|
160 |
def run(model, tokenizer, stop_words, stemmer):
|
161 |
# Add a banner image
|
162 |
banner_image = "https://businessnews.co.id/wp-content/uploads/2021/04/Screenshot_112.jpg"
|
163 |
-
st.image(banner_image,
|
164 |
|
165 |
|
166 |
# Set title and description
|
167 |
-
st.title('Sentiment Analysis using IndoBERT')
|
168 |
st.subheader('This application analyzes the sentiment of user-provided reviews.')
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
|
173 |
# Input form
|
174 |
with st.form(key='review_form'):
|
175 |
-
review_input = st.text_area("Enter Review:", height=150)
|
176 |
submit_button = st.form_submit_button("Analyze Sentiment")
|
177 |
|
178 |
if submit_button:
|
|
|
160 |
def run(model, tokenizer, stop_words, stemmer):
|
161 |
# Add a banner image
|
162 |
banner_image = "https://businessnews.co.id/wp-content/uploads/2021/04/Screenshot_112.jpg"
|
163 |
+
st.image(banner_image, use_container_width=True)
|
164 |
|
165 |
|
166 |
# Set title and description
|
167 |
+
st.title('BRImo Sentiment Analysis using IndoBERT')
|
168 |
st.subheader('This application analyzes the sentiment of user-provided reviews.')
|
|
|
|
|
|
|
169 |
|
170 |
# Input form
|
171 |
with st.form(key='review_form'):
|
172 |
+
review_input = st.text_area("Enter Review: (in Bahasa Indonesia)", height=150)
|
173 |
submit_button = st.form_submit_button("Analyze Sentiment")
|
174 |
|
175 |
if submit_button:
|