fguryel commited on
Commit
6c1cd9e
·
1 Parent(s): e748e8d

Fix: Remove session state modification after widget instantiation

Browse files

- Removed attempt to clear question_input after submission to avoid Streamlit error
- Example questions now properly populate the input field when clicked
- Fixed 'StreamlitAPIException: cannot be modified after widget instantiation' error

Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -431,9 +431,6 @@ def main():
431
  'sources': sources
432
  })
433
 
434
- # Clear the input field after successful submission
435
- st.session_state.question_input = ""
436
-
437
  # Success message
438
  st.success("✅ Answer generated successfully! Check the chat history below.")
439
 
 
431
  'sources': sources
432
  })
433
 
 
 
 
434
  # Success message
435
  st.success("✅ Answer generated successfully! Check the chat history below.")
436