LinkLinkWu commited on
Commit
dd11797
·
verified ·
1 Parent(s): 3ae83b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -24,7 +24,7 @@ st.markdown("""
24
  h1 {
25
  color: #002b45;
26
  font-family: 'Segoe UI', sans-serif;
27
- font-size: 32px;
28
  }
29
  .stTextInput > div > div > input,
30
  .stTextArea textarea {
@@ -46,24 +46,24 @@ st.markdown("""
46
  </style>
47
  """, unsafe_allow_html=True)
48
 
49
- # ----------- Header Section -----------
50
- col1, col2 = st.columns([1, 9])
51
- with col1:
52
- st.image("https://cdn-icons-png.flaticon.com/512/2721/2721203.png", width=48)
53
- with col2:
54
- st.markdown("<h1 style='margin-bottom: 0.2rem;'>EquiPulse: Real-Time Stock News Sentiment</h1>", unsafe_allow_html=True)
 
55
 
56
- # ----------- Description -----------
57
  st.markdown("""
58
- <div style='font-size:16px; line-height:1.6;'>
59
- Uncover real-time sentiment from financial headlines mentioning your target companies.<br>
60
- <b>💬 Try:</b> <i>Apple, Tesla, and Microsoft</i>
61
  </div>
62
  """, unsafe_allow_html=True)
63
 
64
  # ----------- Input Area -----------
65
  st.markdown("#### 🎯 Enter Your Target Company Tickers")
66
- free_text = st.text_area("Example: Apple, Nvidia, Google", height=90)
67
 
68
  ner_pipeline = get_ner_pipeline()
69
  tickers = extract_org_entities(free_text, ner_pipeline)
 
24
  h1 {
25
  color: #002b45;
26
  font-family: 'Segoe UI', sans-serif;
27
+ font-size: 26px;
28
  }
29
  .stTextInput > div > div > input,
30
  .stTextArea textarea {
 
46
  </style>
47
  """, unsafe_allow_html=True)
48
 
49
+ # ----------- Header Section with Icon and Title in One Line -----------
50
+ st.markdown("""
51
+ <div style="display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem;">
52
+ <img src="/mnt/data/e8fea233-2331-4389-8f6d-6f33f097d6ed.png" width="42" height="42">
53
+ <h1 style="margin: 0;">EquiPulse: Real-Time Stock News Sentiment</h1>
54
+ </div>
55
+ """, unsafe_allow_html=True)
56
 
57
+ # ----------- Clean Description Section -----------
58
  st.markdown("""
59
+ <div style='font-size:16px; line-height:1.6; color: #333333;'>
60
+ Analyze financial sentiment from real-time news headlines related to your selected companies.
 
61
  </div>
62
  """, unsafe_allow_html=True)
63
 
64
  # ----------- Input Area -----------
65
  st.markdown("#### 🎯 Enter Your Target Company Tickers")
66
+ free_text = st.text_area("Example: AAPL, NVDA, NKE", height=90)
67
 
68
  ner_pipeline = get_ner_pipeline()
69
  tickers = extract_org_entities(free_text, ner_pipeline)