wekey1998 commited on
Commit
0ba6a31
Β·
verified Β·
1 Parent(s): 95ee8cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -108,13 +108,12 @@ def main():
108
  st.session_state.analysis_complete = False
109
  with st.spinner("πŸ” Analyzing news articles... This may take a few minutes."):
110
  try:
111
- # Create progress bar
112
  progress_bar = st.progress(0)
 
113
  # Store UI handles in session state for callbacks
114
  st.session_state.progress_bar = progress_bar
115
  st.session_state.status_text = status_text
116
-
117
- status_text = st.empty()
118
 
119
  # Run analysis
120
  config = {
 
108
  st.session_state.analysis_complete = False
109
  with st.spinner("πŸ” Analyzing news articles... This may take a few minutes."):
110
  try:
111
+ # Create progress UI
112
  progress_bar = st.progress(0)
113
+ status_text = st.empty()
114
  # Store UI handles in session state for callbacks
115
  st.session_state.progress_bar = progress_bar
116
  st.session_state.status_text = status_text
 
 
117
 
118
  # Run analysis
119
  config = {