nlpblogs commited on
Commit
ddeeb38
·
verified ·
1 Parent(s): 30bf2ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -70,7 +70,6 @@ with st.sidebar:
70
  ''')
71
 
72
 
73
-
74
  st.subheader("YouTube Comments Sentiment Analysis", divider="red")
75
  tokenizer = transformers.DistilBertTokenizer.from_pretrained("tabularisai/robust-sentiment-analysis")
76
  model = transformers.DistilBertForSequenceClassification.from_pretrained("tabularisai/robust-sentiment-analysis")
@@ -178,8 +177,8 @@ if st.button("Sentiment Analysis", type="secondary"):
178
  else:
179
  st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
180
 
181
- st.write(f"URL pasted {st.session_state['url_count']} times.")
182
-
183
 
184
 
185
 
 
70
  ''')
71
 
72
 
 
73
  st.subheader("YouTube Comments Sentiment Analysis", divider="red")
74
  tokenizer = transformers.DistilBertTokenizer.from_pretrained("tabularisai/robust-sentiment-analysis")
75
  model = transformers.DistilBertForSequenceClassification.from_pretrained("tabularisai/robust-sentiment-analysis")
 
177
  else:
178
  st.warning(f"You have reached the maximum URL attempts ({max_attempts}).")
179
 
180
+ if 'url_count' in st.session_state: #added if statement.
181
+ st.write(f"URL pasted {st.session_state['url_count']} times.")
182
 
183
 
184