shubhamgs commited on
Commit
4b5ba84
·
verified ·
1 Parent(s): a6c98bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ if "reset_triggered" not in st.session_state:
126
  # JavaScript to clear the input field
127
  clear_input_js = """
128
  <script>
129
- const input = window.parent.document.querySelector('input[aria-label="Your Question"]');
130
  if (input) {
131
  input.value = '';
132
  }
 
126
  # JavaScript to clear the input field
127
  clear_input_js = """
128
  <script>
129
+ const input = document.querySelector('input[aria-label="Your Question"]');
130
  if (input) {
131
  input.value = '';
132
  }