rdune71 commited on
Commit
abbb601
·
1 Parent(s): 95e9a8c

Fix syntax error in app.py - properly structure try/except/finally blocks

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -511,7 +511,8 @@ if user_input and not st.session_state.is_processing:
511
  "content": f"⚠️ {user_msg}",
512
  "timestamp": datetime.now().strftime("%H:%M:%S")
513
  })
514
- finally:
 
515
  st.session_state.is_processing = False
516
  time.sleep(0.5) # Brief pause
517
  st.experimental_rerun()
 
511
  "content": f"⚠️ {user_msg}",
512
  "timestamp": datetime.now().strftime("%H:%M:%S")
513
  })
514
+
515
+ # Moved finally block to proper location
516
  st.session_state.is_processing = False
517
  time.sleep(0.5) # Brief pause
518
  st.experimental_rerun()