Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ st.markdown("""
|
|
24 |
h1 {
|
25 |
color: #002b45;
|
26 |
font-family: 'Segoe UI', sans-serif;
|
27 |
-
font-size:
|
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 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
55 |
|
56 |
-
# ----------- Description -----------
|
57 |
st.markdown("""
|
58 |
-
<div style='font-size:16px; line-height:1.6;'>
|
59 |
-
|
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:
|
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)
|