Fix syntax error in app.py - properly structure try/except/finally blocks
Browse files
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 |
-
|
|
|
|
| 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()
|