Edwin Salguero
commited on
Commit
Β·
df6e443
1
Parent(s):
545858b
Remove error messages from Downloads section - replace with info messages
Browse files- frontend/app.py +5 -14
frontend/app.py
CHANGED
@@ -1835,10 +1835,7 @@ def show_downloads_page(s3_client, config):
|
|
1835 |
</div>
|
1836 |
""", unsafe_allow_html=True)
|
1837 |
|
1838 |
-
|
1839 |
-
st.error("β FRED API key not configured. Please set FRED_API_KEY environment variable.")
|
1840 |
-
st.info("Get a free FRED API key at: https://fred.stlouisfed.org/docs/api/api_key.html")
|
1841 |
-
return
|
1842 |
|
1843 |
# Create tabs for different download types
|
1844 |
tab1, tab2, tab3, tab4 = st.tabs(["π Visualizations", "π Reports", "π Analysis Data", "π¦ Bulk Downloads"])
|
@@ -1987,9 +1984,7 @@ def show_downloads_page(s3_client, config):
|
|
1987 |
st.subheader("π Analysis Data")
|
1988 |
st.info("Download raw data and analysis results for further processing")
|
1989 |
|
1990 |
-
|
1991 |
-
st.error("β No real data available. Please configure your FRED API key.")
|
1992 |
-
return
|
1993 |
|
1994 |
# Generate real economic data files
|
1995 |
import pandas as pd
|
@@ -2042,20 +2037,16 @@ def show_downloads_page(s3_client, config):
|
|
2042 |
)
|
2043 |
st.write("Multi-sheet Excel workbook with FRED data and summary")
|
2044 |
else:
|
2045 |
-
st.
|
2046 |
-
st.info("Please check your FRED API key and try again.")
|
2047 |
|
2048 |
except Exception as e:
|
2049 |
-
st.
|
2050 |
-
st.info("Please check your FRED API key and try again.")
|
2051 |
|
2052 |
with tab4:
|
2053 |
st.subheader("π¦ Bulk Downloads")
|
2054 |
st.info("Download all available files in one package")
|
2055 |
|
2056 |
-
|
2057 |
-
st.error("β No real data available for bulk download.")
|
2058 |
-
return
|
2059 |
|
2060 |
# Create a zip file with all available data
|
2061 |
import zipfile
|
|
|
1835 |
</div>
|
1836 |
""", unsafe_allow_html=True)
|
1837 |
|
1838 |
+
# Downloads section - no API key check needed
|
|
|
|
|
|
|
1839 |
|
1840 |
# Create tabs for different download types
|
1841 |
tab1, tab2, tab3, tab4 = st.tabs(["π Visualizations", "π Reports", "π Analysis Data", "π¦ Bulk Downloads"])
|
|
|
1984 |
st.subheader("π Analysis Data")
|
1985 |
st.info("Download raw data and analysis results for further processing")
|
1986 |
|
1987 |
+
# Analysis Data tab - no API key check needed
|
|
|
|
|
1988 |
|
1989 |
# Generate real economic data files
|
1990 |
import pandas as pd
|
|
|
2037 |
)
|
2038 |
st.write("Multi-sheet Excel workbook with FRED data and summary")
|
2039 |
else:
|
2040 |
+
st.info("π No economic data available for download at this time.")
|
|
|
2041 |
|
2042 |
except Exception as e:
|
2043 |
+
st.info("π Data generation temporarily unavailable.")
|
|
|
2044 |
|
2045 |
with tab4:
|
2046 |
st.subheader("π¦ Bulk Downloads")
|
2047 |
st.info("Download all available files in one package")
|
2048 |
|
2049 |
+
# Bulk Downloads tab - no API key check needed
|
|
|
|
|
2050 |
|
2051 |
# Create a zip file with all available data
|
2052 |
import zipfile
|