Edwin Salguero
commited on
Commit
Β·
c0b48d9
1
Parent(s):
b4c9946
Add version 2.0.1 indicator to force Streamlit Cloud update
Browse files- frontend/app.py +17 -1
frontend/app.py
CHANGED
|
@@ -2,6 +2,14 @@
|
|
| 2 |
"""
|
| 3 |
FRED ML - Enterprise Economic Analytics Platform
|
| 4 |
Professional think tank interface for comprehensive economic data analysis
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
import streamlit as st
|
|
@@ -17,7 +25,7 @@ print("DEBUG: FRED_API_KEY from shell =", os.environ.get('FRED_API_KEY'))
|
|
| 17 |
|
| 18 |
# Page configuration - MUST be first Streamlit command
|
| 19 |
st.set_page_config(
|
| 20 |
-
page_title="FRED ML - Economic Analytics Platform",
|
| 21 |
page_icon="ποΈ",
|
| 22 |
layout="wide",
|
| 23 |
initial_sidebar_state="expanded"
|
|
@@ -424,6 +432,14 @@ def create_forecast_plot(historical_data, forecast_data, title="Forecast"):
|
|
| 424 |
def main():
|
| 425 |
"""Main Streamlit application"""
|
| 426 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 427 |
# Show loading indicator and load everything
|
| 428 |
with st.spinner("π Initializing FRED ML Platform..."):
|
| 429 |
load_config() # pulls from os.environ or st.secrets
|
|
|
|
| 2 |
"""
|
| 3 |
FRED ML - Enterprise Economic Analytics Platform
|
| 4 |
Professional think tank interface for comprehensive economic data analysis
|
| 5 |
+
|
| 6 |
+
VERSION: 2.0.1 - Latest Updates Applied
|
| 7 |
+
- Fixed string/int comparison errors
|
| 8 |
+
- Removed debug language from insights
|
| 9 |
+
- Fixed S3 credentials issues
|
| 10 |
+
- Updated downloads section
|
| 11 |
+
- Apache 2.0 license
|
| 12 |
+
- Comprehensive README
|
| 13 |
"""
|
| 14 |
|
| 15 |
import streamlit as st
|
|
|
|
| 25 |
|
| 26 |
# Page configuration - MUST be first Streamlit command
|
| 27 |
st.set_page_config(
|
| 28 |
+
page_title="FRED ML - Economic Analytics Platform v2.0.1",
|
| 29 |
page_icon="ποΈ",
|
| 30 |
layout="wide",
|
| 31 |
initial_sidebar_state="expanded"
|
|
|
|
| 432 |
def main():
|
| 433 |
"""Main Streamlit application"""
|
| 434 |
|
| 435 |
+
# Display version info
|
| 436 |
+
st.markdown("""
|
| 437 |
+
<div style="background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
|
| 438 |
+
color: white; padding: 0.5rem; border-radius: 5px; margin-bottom: 1rem; text-align: center;">
|
| 439 |
+
<strong>FRED ML v2.0.1</strong> - Latest Updates Applied β
|
| 440 |
+
</div>
|
| 441 |
+
""", unsafe_allow_html=True)
|
| 442 |
+
|
| 443 |
# Show loading indicator and load everything
|
| 444 |
with st.spinner("π Initializing FRED ML Platform..."):
|
| 445 |
load_config() # pulls from os.environ or st.secrets
|