Dmitry Beresnev commited on
Commit ·
f6443c4
1
Parent(s): 44eb7ac
fix spinneri nnews dashboard
Browse files297 unmodified lines298299300301302303304305306307308309310311312313314315316317318319320321297 unmodified lines# Create a status placeholder to show progressstatus_placeholder = st.empty()# Custom spinner CSS for rotating circlest.markdown("""<style>@keyframes spinner-rotate {0% { transform: rotate(0deg); }100% { transform: rotate(360deg); }}.stSpinner > div {border: 3px solid #2A2E39;border-top: 3px solid #3b82f6;border-radius: 50%;width: 40px;height: 40px;animation: spinner-rotate 1s linear infinite;}</style>""", unsafe_allow_html=True)# Execute all news fetching operations in parallel using ThreadPoolExecutorwith st.spinner("Loading news from 4 sources..."):with ThreadPoolExecutor(max_workers=4) as executor:297 unmodified lines298299300301302303297 unmodified lines# Create a status placeholder to show progressstatus_placeholder = st.empty()# Execute all news fetching operations in parallel using ThreadPoolExecutorwith st.spinner("Loading news from 4 sources..."):with ThreadPoolExecutor(max_workers=4) as executor:
app/pages/05_Dashboard.py-18