rocky250 commited on
Commit
449b44b
·
verified ·
1 Parent(s): 17c962e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -4
src/streamlit_app.py CHANGED
@@ -26,7 +26,6 @@ label_colors = {
26
 
27
  @st.cache_resource
28
  def load_all_transformers():
29
- # Replace 'your-username' with your actual Hugging Face username
30
  model_repos = {
31
  "BanglaBERT": "rocky250/political-banglabert",
32
  "mBERT": "rocky250/political-mbert",
@@ -58,13 +57,13 @@ def get_detailed_prediction(text):
58
  final_vote = max(set(votes), key=votes.count)
59
  return final_vote, votes, avg_probs
60
 
61
- st.title("🇧🇩 Political Sentiment Analysis")
62
- st.markdown("Advanced Multi-Model Ensemble Dashboard")
63
 
64
  with st.container():
65
  st.markdown('<div class="sentiment-card" style="border-left-color: #007BFF;">', unsafe_allow_html=True)
66
  user_input = st.text_area("Input Political Comment:", height=120)
67
- analyze_btn = st.button("🚀 Analyze Sentiment")
68
  st.markdown('</div>', unsafe_allow_html=True)
69
 
70
  if analyze_btn:
 
26
 
27
  @st.cache_resource
28
  def load_all_transformers():
 
29
  model_repos = {
30
  "BanglaBERT": "rocky250/political-banglabert",
31
  "mBERT": "rocky250/political-mbert",
 
57
  final_vote = max(set(votes), key=votes.count)
58
  return final_vote, votes, avg_probs
59
 
60
+ st.title("BD Political Sentiment Analysis")
61
+ #st.markdown("Advanced Multi-Model Ensemble Dashboard")
62
 
63
  with st.container():
64
  st.markdown('<div class="sentiment-card" style="border-left-color: #007BFF;">', unsafe_allow_html=True)
65
  user_input = st.text_area("Input Political Comment:", height=120)
66
+ analyze_btn = st.button("Analyze Sentiment")
67
  st.markdown('</div>', unsafe_allow_html=True)
68
 
69
  if analyze_btn: